Manual IF5I AJP 22517-Pages
Manual IF5I AJP 22517-Pages
Layout Types
Understand the default layout for different containers such as Applet, Frame, Panel.
Grid Layout is used to make a bunch of components equal in size and displays them in the
requested number of rows and columns. One component is displayed in each rectangle.
The list of Constructor for GridLayout are:
1. GridLayout(): creates a grid layout with one column per component in a row.
2. GridLayout(int rows, int columns): creates a grid layout with the given rows and
columns but no gaps between the components.
3. GridLayout(int rows, int columns, int hgap, int vgap): creates a grid layout with
the given rows and columns along with given horizontal and vertical gaps if we
give setLayout(null) the default layout is disabled.then we have to use setBounds
method to layout the components.
Nil
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................