Example usage for Java java.awt BorderLayout fields, constructors, methods, implement or subclass
The text is from its open source code.
String | NORTH The north layout constraint (top of container). |
String | SOUTH The south layout constraint (bottom of container). |
String | EAST The east layout constraint (right side of container). |
String | WEST The west layout constraint (left side of container). |
String | CENTER The center layout constraint (middle of container). |
String | BEFORE_FIRST_LINE Synonym for PAGE_START. |
String | AFTER_LAST_LINE Synonym for PAGE_END. |
String | BEFORE_LINE_BEGINS Synonym for LINE_START. |
String | AFTER_LINE_ENDS Synonym for LINE_END. |
String | PAGE_START The component comes before the first line of the layout's content. |
String | PAGE_END The component comes after the last line of the layout's content. |
String | LINE_START The component goes at the beginning of the line direction for the layout. |
String | LINE_END The component goes at the end of the line direction for the layout. |
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. |
Object | getConstraints(Component comp) Gets the constraints for the specified component |
int | getHgap() Returns the horizontal gap between components. |
float | getLayoutAlignmentX(Container parent) Returns the alignment along the x axis. |
float | getLayoutAlignmentY(Container parent) Returns the alignment along the y axis. |
Component | getLayoutComponent(Container target, Object constraints) Returns the component that corresponds to the given constraint location based on the target Container 's component orientation. |
Component | getLayoutComponent(Object constraints) Gets the component that was added using the given constraint |
int | getVgap() Returns the vertical gap between components. |
void | invalidateLayout(Container target) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
void | layoutContainer(Container target) Lays out the container argument using this border layout. |
Dimension | maximumLayoutSize(Container target) Returns the maximum dimensions for this layout given the components in the specified target container. |
Dimension | minimumLayoutSize(Container target) Determines the minimum size of the target container using this layout manager. |
Dimension | preferredLayoutSize(Container target) Determines the preferred size of the target container using this layout manager, based on the components in the container. |
void | setHgap(int hgap) Sets the horizontal gap between components. |
void | setVgap(int vgap) Sets the vertical gap between components. |
String | toString() Returns a string representation of the state of this border layout. |