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

Chapter 10. SWT Composites and Groups > Using Composites to Achieve Complex Des...

10.6. Using Composites to Achieve Complex Designs

It is possible to use combinations of Composites or Groups together with layouts to your advantage when you need to construct more complex user interfaces than are possible with the single-container, single-layout approach. You can, for example, design a Shell that utilizes one type of layout and add to it Composite or Group objects that use a different type of layout. Using this combination approach, you can achieve almost any user interface design.

10.6.1. How do I do that?

Example 10-8 consists of three classes. The first is a Composite that makes use of RowLayout to display two SWT.PUSH-style Button objects:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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