Documentation
BorderLayout
The border layout manager places components in up to five areas: center, north, south, east and west. Each area can contain only one component.
The components are laid out according to their preferred sizes. The north and south components may be stretched horizontally. The east and west components may be stretched vertically. The center component may be stretched horizontally and vertically to fill any space left over.
BorderLayout is part of the standard Java distribution.
Layout properties¶
A container with this layout manager has following layout properties:
| Property Name | Description |
|---|---|
| horizontal gap | The horizontal gap between components. Default is 0. |
| vertical gap | The vertical gap between components. Default is 0. |
Constraints properties¶
A component contained in a container with this layout manager has following constraints properties:
| Property Name | Description |
|---|---|
| constraints | Specifies where the component will be placed. Possible values: CENTER, NORTH, SOUTH, EAST and WEST. |
