GridLayout Constructors
public GridLayout(int rows,int columns)
Constructs a new GridLayout with the specified number of rows and columns.
public GridLayout(int rows, int columns, int hGap, int vGap)
Constructs a new GridLayout with thespecified number of rows and columns,along with specified horizontal andvertical gaps between components.