|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.Box
public class Box
A component that uses a BoxLayout as Layout Manager.
In addition to that, this class provides a set of static methods for
creating some filler components ('struts' and 'glue') for use in
containers that are laid out using BoxLayout.
| Nested Class Summary | |
|---|---|
protected class |
Box.AccessibleBox
Provides accessibility support for Boxes. |
static class |
Box.Filler
A component that servers as a filler in BoxLayout controlled containers. |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| 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()
Get the value of the accessibleContext property for this component. |
void |
setLayout(LayoutManager l)
Sets the layout manager for this container to the specified layout manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Box(int axis)
axis parameter.
axis - the orientation of the BoxLayout.BoxLayout.X_AXIS,
BoxLayout.Y_AXIS,
BoxLayout.LINE_AXIS,
BoxLayout.PAGE_AXIS| Method Detail |
|---|
public static Component createGlue()
public static Box createHorizontalBox()
public static Component createHorizontalGlue()
public static Component createHorizontalStrut(int width)
width - the width of this strut in pixels.
public static Component createRigidArea(Dimension d)
public static Box createVerticalBox()
public static Component createVerticalGlue()
public static Component createVerticalStrut(int height)
height - the height of this strut in pixels.
public void setLayout(LayoutManager l)
Container
setLayout in class Containerl - The new layout manager for this container.public AccessibleContext getAccessibleContext()
JComponent
getAccessibleContext in interface AccessiblegetAccessibleContext in class JComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||