Example usage for Java javax.swing Box fields, constructors, methods, implement or subclass
The text is from its open source code.
Box(int axis) Creates a Box that displays its components along the specified axis. |
Component | add(Component comp) Appends the specified component to the end of this container. |
Component | add(String name, Component comp) Adds the specified component to this container. |
Component | createGlue() Creates an invisible "glue" component that can be useful in a Box whose visible components have a maximum width (for a horizontal box) or height (for a vertical box). |
Box | createHorizontalBox() Creates a Box that displays its components from left to right. |
Component | createHorizontalGlue() Creates a horizontal glue component. |
Component | createHorizontalStrut(int width) Creates an invisible, fixed-width component. |
Component | createRigidArea(Dimension d) Creates an invisible component that's always the specified size. |
Box | createVerticalBox() Creates a Box that displays its components from top to bottom. |
Component | createVerticalGlue() Creates a vertical glue component. |
Component | createVerticalStrut(int height) Creates an invisible, fixed-height component. |
AccessibleContext | getAccessibleContext() Gets the AccessibleContext associated with this Box. |
Dimension | getPreferredSize() If the preferredSize has been set to a non-null value just returns it. |
void | repaint() Repaints this component. |
void | setAlignmentX(float alignmentX) Sets the horizontal alignment. |
void | setBackground(Color bg) Sets the background color of this component. |
void | setBorder(Border border) Sets the border of this component. |
void | setMaximumSize(Dimension maximumSize) Sets the maximum size of this component to a constant value. |
void | setMinimumSize(Dimension minimumSize) Sets the minimum size of this component to a constant value. |
void | setOpaque(boolean isOpaque) If true the component paints every pixel within its bounds. |
void | setPreferredSize(Dimension preferredSize) Sets the preferred size of this component. |
void | setSize(Dimension d) Resizes this component so that it has width d.width and height d.height . |
void | setToolTipText(String text) Registers the text to display in a tool tip. |