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

Chapter 9. SWT Layouts > Filling the Entire Container with Widgets

9.3. Filling the Entire Container with Widgets

The first of the layout classes to master is the simplest—FillLayout . As the name implies, FillLayout causes widgets to completely fill the working area of the container within which they are placed. The code developed earlier demonstrated how to create an instance of FillLayout and attach it to a Shell instance:

s.setLayout(new FillLayout( ));


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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