Java java.awt BorderLayout fields, constructors, methods, implement or subclass

Example usage for Java java.awt BorderLayout fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt BorderLayout.

The text is from its open source code.

Field

StringNORTH
The north layout constraint (top of container).
StringSOUTH
The south layout constraint (bottom of container).
StringEAST
The east layout constraint (right side of container).
StringWEST
The west layout constraint (left side of container).
StringCENTER
The center layout constraint (middle of container).
StringBEFORE_FIRST_LINE
Synonym for PAGE_START.
StringAFTER_LAST_LINE
Synonym for PAGE_END.
StringBEFORE_LINE_BEGINS
Synonym for LINE_START.
StringAFTER_LINE_ENDS
Synonym for LINE_END.
StringPAGE_START
The component comes before the first line of the layout's content.
StringPAGE_END
The component comes after the last line of the layout's content.
StringLINE_START
The component goes at the beginning of the line direction for the layout.
StringLINE_END
The component goes at the end of the line direction for the layout.

Constructor

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.

Method

ObjectgetConstraints(Component comp)
Gets the constraints for the specified component
intgetHgap()
Returns the horizontal gap between components.
floatgetLayoutAlignmentX(Container parent)
Returns the alignment along the x axis.
floatgetLayoutAlignmentY(Container parent)
Returns the alignment along the y axis.
ComponentgetLayoutComponent(Container target, Object constraints)
Returns the component that corresponds to the given constraint location based on the target Container 's component orientation.
ComponentgetLayoutComponent(Object constraints)
Gets the component that was added using the given constraint
intgetVgap()
Returns the vertical gap between components.
voidinvalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
voidlayoutContainer(Container target)
Lays out the container argument using this border layout.
DimensionmaximumLayoutSize(Container target)
Returns the maximum dimensions for this layout given the components in the specified target container.
DimensionminimumLayoutSize(Container target)
Determines the minimum size of the target container using this layout manager.
DimensionpreferredLayoutSize(Container target)
Determines the preferred size of the target container using this layout manager, based on the components in the container.
voidsetHgap(int hgap)
Sets the horizontal gap between components.
voidsetVgap(int vgap)
Sets the vertical gap between components.
StringtoString()
Returns a string representation of the state of this border layout.