javax.swing
public class Box extends JComponent implements Accessible
Nested Class Summary | |
---|---|
protected class | Box.AccessibleBox
Provides accessibility support for Box es. |
static class | Box.Filler
A component that servers as a filler in BoxLayout controlled containers. |
Constructor Summary | |
---|---|
Box(int axis)
Creates a new Box component, that lays out its children according
to the axis parameter.
|
Method Summary | |
---|---|
static Component | createGlue()
Creates a filler component which acts as glue between components.
|
static Box | createHorizontalBox() |
static Component | createHorizontalGlue()
Creates a filler component which acts as glue between components.
|
static Component | createHorizontalStrut(int width)
Creates a filler component which acts as strut between components.
|
static Component | createRigidArea(Dimension d) |
static Box | createVerticalBox() |
static Component | createVerticalGlue()
Creates a filler component which acts as glue between components.
|
static Component | createVerticalStrut(int height)
Creates a filler component which acts as strut between components.
|
AccessibleContext | getAccessibleContext() |
void | setLayout(LayoutManager l) |
axis
parameter.
Parameters: axis the orientation of the BoxLayout.
Returns: a glue-like filler component.
Returns: a glue-like filler component.
Parameters: width the width of this strut in pixels.
Returns: a strut-like filler component.
Returns: a glue-like filler component.
Parameters: height the height of this strut in pixels.
Returns: a strut-like filler component.