All components are arranged by the Grid layout manager. This arrangement is done in grid of columns and rows. One of the given options may be selected. Number of columns & rows shall be specified.Only rows are specified and no. of columns will be determined by the layout manager.Just columns are specified and no. of rows will be determined by layout manager.
Objects present in the layout manager grid have equal sizes which are based at the gridís largest components.
A layout controls the position and size of the children of a composite widget. This class is the abstract base class for layouts.
Layout class constructor
Following are details of all the methods of Layout class.
1. protected abstract Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache)
Computes and returns the size of the specified composite's client area according to this layout.