Java javax.swing Box fields, constructors, methods, implement or subclass

Example usage for Java javax.swing Box fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing Box.

The text is from its open source code.

Subclass

javax.swing.Box has subclasses.
Click this link to see all its subclasses.

Constructor

Box(int axis)
Creates a Box that displays its components along the specified axis.

Method

Componentadd(Component comp)
Appends the specified component to the end of this container.
Componentadd(String name, Component comp)
Adds the specified component to this container.
ComponentcreateGlue()
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).
BoxcreateHorizontalBox()
Creates a Box that displays its components from left to right.
ComponentcreateHorizontalGlue()
Creates a horizontal glue component.
ComponentcreateHorizontalStrut(int width)
Creates an invisible, fixed-width component.
ComponentcreateRigidArea(Dimension d)
Creates an invisible component that's always the specified size.
BoxcreateVerticalBox()
Creates a Box that displays its components from top to bottom.
ComponentcreateVerticalGlue()
Creates a vertical glue component.
ComponentcreateVerticalStrut(int height)
Creates an invisible, fixed-height component.
AccessibleContextgetAccessibleContext()
Gets the AccessibleContext associated with this Box.
DimensiongetPreferredSize()
If the preferredSize has been set to a non-null value just returns it.
voidrepaint()
Repaints this component.
voidsetAlignmentX(float alignmentX)
Sets the horizontal alignment.
voidsetBackground(Color bg)
Sets the background color of this component.
voidsetBorder(Border border)
Sets the border of this component.
voidsetMaximumSize(Dimension maximumSize)
Sets the maximum size of this component to a constant value.
voidsetMinimumSize(Dimension minimumSize)
Sets the minimum size of this component to a constant value.
voidsetOpaque(boolean isOpaque)
If true the component paints every pixel within its bounds.
voidsetPreferredSize(Dimension preferredSize)
Sets the preferred size of this component.
voidsetSize(Dimension d)
Resizes this component so that it has width d.width and height d.height .
voidsetToolTipText(String text)
Registers the text to display in a tool tip.