BorderLayout Members

BorderLayout Members

Class Overview | This Package | All Packages

Fields
Name Description
CENTER The center layout constraint (middle of container).
EAST The east layout constraint (left side of container).
NORTH The north layout constraint (top of container).
SOUTH The south layout constraint (bottom of container).
WEST The west layout constraint (right side of container).

Constructors
Name Description
BorderLayout() Constructs a new border layout with no gaps between components.
BorderLayout(int, int) Constructs a border layout with the specified gaps between components.

Methods
Name Description
addLayoutComponent(Component, Object) Adds the specified component to the layout, using the specified constraint object.
addLayoutComponent(String, Component) Deprecated.
getHgap() Returns the horizontal gap between components.
getLayoutAlignmentX(Container) Returns the alignment along the x axis.
getLayoutAlignmentY(Container) Returns the alignment along the y axis.
getVgap() Returns the vertical gap between components.
invalidateLayout(Container) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
layoutContainer(Container) Lays out the container argument using this border layout.
maximumLayoutSize(Container) Returns the maximum dimensions for this layout given the components in the specified target container.
minimumLayoutSize(Container) Determines the minimum size of the target container using this layout manager.
preferredLayoutSize(Container) Determines the preferred size of the target container using this layout manager, based on the components in the container.
removeLayoutComponent(Component) Removes the specified component from this border layout.
setHgap(int) Sets the horizontal gap between components.
setVgap(int) Sets the vertical gap between components.
toString() Returns a string representation of the state of this border layout.