• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. SWT Composites and Groups > Creating Multiple Instances of a Compos...

10.5. Creating Multiple Instances of a Composite Subclass

Of course, the main reason for choosing to create a Group as part of a Composite subclass is that when you want to create multiple instances of the Group on the same window or to use the Group on multiple windows.

10.5.1. How do I do that?

Create an instance of the subclass for each time you wish it to appear, as shown in Example 10-7.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint