GridLayout

GridLayout places components in a grid of equally sized cells. Like FlowLayout, components are added to the grid from left to right and top to bottom.

Use GridLayout's general properties to set the number of columns and rows (one of these two values must be nonzero) and the vertical and horizontal gap in pixels between the cells.

See also
Setting the Layout Manager

Setting Layout Properties

FlowLayout

GridBagLayout

Legal Notices