The class BorderLayout arranges the components to fit in the five regions: east, west, north, south and center.
Border Layout
The class BorderLayout arranges the components to fit in the five regions: east, west, north, south and center. Each region is can contain only one component and each component in each region is identified by the corresponding constant NORTH, SOUTH, EAST, WEST, and CENTER.
constructors
- BorderLayout():Constructs a new border layout with no gaps between components.
- BorderLayout(int hgap, int vgap):Constructs a border layout with the specified gaps between components.