Layouts : Layout Basics « SWT « Java Tutorial






A layout can be used to control the position and size of children of a composite. Four standard layouts and one custom layout provided in SWT:

  1. FillLayout
  2. RowLayout
  3. GridLayout
  4. FormLayout
  5. StackLayout








17.93.Layout Basics
17.93.1.Layouts
17.93.2.A few terms that are used frequently when discussing layouts
17.93.3.Setting Layouts
17.93.4.Using Layout Data Objects to control layoutUsing Layout Data Objects to control layout
17.93.5.Laying Out Children of a CompositeLaying Out Children of a Composite
17.93.6.Layout term: bounds, client areaLayout term: bounds, client area