BorderLayout
enables components in a container to be arranged in five
positions: Center, North, South, East, and West.
The Center area expands to fill any empty space left inside the four surrounding regions of the container.
Components in the North and South positions automatically expand horizontally to fill the entire width of the container. West and East components automatically expand vertically.
Use BorderLayout's general properties to control the vertical and horizontal gap (in pixels) between the components.
See also | |
---|---|
Standard Layout Managers
Setting the Layout Manager Setting Layout Properties |