Java GridLayout Constructor's

javax.swing
Class GridLayout

java.lang.Object
  extended byjava.awt.GridLayout
All Implemented Interfaces:
LayoutManager, Serializable
 

GridLayout Constructor

 

 

 

GridLayout()
Creates a grid layout with a default of one column per component, in a single row.


GridLayout(int rows, int cols)
Creates a grid layout with the specified number of rows and columns.


GridLayout(int rows, int cols, int hgap, int vgap)
Creates a grid layout with the specified number of rows and columns.