Advanced Java Tutorial


Total available pages count: 55
Subject - Java Technologies

Grid Layout

The GridLayout is used to arrange the component in the rectangular grid format. The component is displayed in each of the rectangles.

GridLayout()

the method used to create a grid layout with 1 column or component in the row.

GridLayout(int rows, int columns)

The method is used to create a grid layout with rows & columns without gaps between components.
 

GridLaytout(int rows, int columns,int hgap,int vgap)

The method is used to create a grid layout with the rows & columns along with vertical & horizontal gaps.

GridLayout


Comments