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

Chapter 10. SWT Composites and Groups

Chapter 10. SWT Composites and Groups

Until now, all examples that have been created have included widgets that were added directly to an instance of Shell. This approach works well for simple interfaces, but more complex designs require the use of a different layout manager for different parts of the window. For example, you might want a row of buttons at the bottom of a window—a perfect situation for RowLayout—while data is displayed above the buttons in the form of a grid, a perfect situation for GridLayout.

The SWT provides for these situations with two additional classes that can act as containers for widgets: Composite and Group. These classes are located in the org.eclipse.swt.widgets package.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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