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

Chapter 10. SWT Composites and Groups > Using the Group Class

10.4. Using the Group Class

The SWT Group class extends the Composite class and provides some additional functionality related primarily to the appearance of the group. Group permits you to add a text label as a prompt to the user of group contents and to change the border style of the resulting object, yielding more of a visual indication to the user that the widgets are part of a functional area of the application.

Because the Group class cannot be subclassed, it must be used in a manner similar to Shell—you create an instance of Group within another container class (such as Composite) and then add widgets to that instance.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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