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

Chapter 9. SWT Layouts > Changing Widget Placement in FillLayouts

9.4. Changing Widget Placement in FillLayouts

The default of FillLayout positions the widgets horizontally so that widgets appear side by side. If you want the widgets to appear top to bottom, you need to change the style type of the FillLayout.

9.4.1. How do I do that?

Whether the widgets are displayed horizontally (side by side) or vertically (top to bottom) is controlled by passing a style attribute to the FillLayout constructor:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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