Top Description Fields
javax.swing

public Interface SwingConstants

Known Direct Implementers
javax.swing.JProgressBar, javax.swing.JSeparator, javax.swing.JSlider, javax.swing.JTabbedPane, javax.swing.JTextField, javax.swing.JToolBar, javax.swing.SwingUtilities, javax.swing.plaf.basic.BasicArrowButton, javax.swing.plaf.basic.BasicInternalFrameUI.BorderListener, javax.swing.plaf.basic.BasicInternalFrameUI.Handler, javax.swing.plaf.basic.BasicScrollBarUI, javax.swing.plaf.basic.BasicTabbedPaneUI, javax.swing.plaf.basic.BasicTabbedPaneUI.ScrollableTabButton, javax.swing.plaf.basic.BasicToolBarUI, javax.swing.plaf.metal.MetalBorders.ToolBarBorder, javax.swing.plaf.metal.MetalInternalFrameUI.BorderListener1, javax.swing.plaf.synth.SynthArrowButton, javax.swing.text.View, javax.swing.AbstractButton, javax.swing.JCheckBoxMenuItem, javax.swing.JLabel

A collection of constants generally used for positioning and orienting components on the screen.
Authors
Jeff Dinkins, Ralph Kar (orientation support)
Since
1.2

Field Summary

Modifier and TypeField and Description
public static final int
BOTTOM

Box-orientation constant used to specify the bottom of a box.

public static final int
CENTER

The central position in an area.

public static final int
EAST

Compass-direction east (right).

public static final int
HORIZONTAL

Horizontal orientation.

public static final int
LEADING

Identifies the leading edge of text for use with left-to-right and right-to-left languages.

public static final int
LEFT

Box-orientation constant used to specify the left side of a box.

public static final int
NEXT

Identifies the next direction in a sequence.

public static final int
NORTH

Compass-direction North (up).

public static final int
NORTH_EAST

Compass-direction north-east (upper right).

public static final int
NORTH_WEST

Compass-direction north west (upper left).

public static final int
PREVIOUS

Identifies the previous direction in a sequence.

public static final int
RIGHT

Box-orientation constant used to specify the right side of a box.

public static final int
SOUTH

Compass-direction south (down).

public static final int
SOUTH_EAST

Compass-direction south-east (lower right).

public static final int
SOUTH_WEST

Compass-direction south-west (lower left).

public static final int
TOP

Box-orientation constant used to specify the top of a box.

public static final int
TRAILING

Identifies the trailing edge of text for use with left-to-right and right-to-left languages.

public static final int
VERTICAL

Vertical orientation.

public static final int
WEST

Compass-direction west (left).

Field Detail

BOTTOMback to summary
public static final int BOTTOM

Box-orientation constant used to specify the bottom of a box.

CENTERback to summary
public static final int CENTER

The central position in an area. Used for both compass-direction constants (NORTH, etc.) and box-orientation constants (TOP, etc.).

EASTback to summary
public static final int EAST

Compass-direction east (right).

HORIZONTALback to summary
public static final int HORIZONTAL

Horizontal orientation. Used for scrollbars and sliders.

LEADINGback to summary
public static final int LEADING

Identifies the leading edge of text for use with left-to-right and right-to-left languages. Used by buttons and labels.

LEFTback to summary
public static final int LEFT

Box-orientation constant used to specify the left side of a box.

NEXTback to summary
public static final int NEXT

Identifies the next direction in a sequence.

Since
1.4
NORTHback to summary
public static final int NORTH

Compass-direction North (up).

NORTH_EASTback to summary
public static final int NORTH_EAST

Compass-direction north-east (upper right).

NORTH_WESTback to summary
public static final int NORTH_WEST

Compass-direction north west (upper left).

PREVIOUSback to summary
public static final int PREVIOUS

Identifies the previous direction in a sequence.

Since
1.4
SOUTHback to summary
public static final int SOUTH

Compass-direction south (down).

SOUTH_EASTback to summary
public static final int SOUTH_EAST

Compass-direction south-east (lower right).

SOUTH_WESTback to summary
public static final int SOUTH_WEST

Compass-direction south-west (lower left).

TOPback to summary
public static final int TOP

Box-orientation constant used to specify the top of a box.

TRAILINGback to summary
public static final int TRAILING

Identifies the trailing edge of text for use with left-to-right and right-to-left languages. Used by buttons and labels.

VERTICALback to summary
public static final int VERTICAL

Vertical orientation. Used for scrollbars and sliders.

WESTback to summary
public static final int WEST

Compass-direction west (left).