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

Chapter 10. SWT Composites and Groups > An Alternate Approach

10.7. An Alternate Approach

For any given design, there are usually multiple approaches that will achieve the desired effect (or come close). For example, it's possible to rewrite the code from the ComplexShellExample to utilize one less class and achieve a slightly different object alignment.

10.7.1. How do I do that?

The version of ComplexShellExample created by Example 10-11 eliminates the RowComposite class in favor of placing the Button widgets in a Composite created directly on the Shell.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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