javax.swing
Interface SwingConstants

All Known Implementing Classes:
AbstractButton, JCheckBoxMenuItem, JLabel, JProgressBar, JSeparator, JSlider, JTabbedPane, JTextField, JToolBar, SwingUtilities, View

public interface SwingConstants

Safe: A collection of constants generally used for positioning and orienting components on the screen.

Version:
1.14 12/03/01
Author:
Jeff Dinkins, Ralph Kar (orientation support)

Field Summary
static int BOTTOM
          Enabled: Box-orientation constant used to specify the bottom of a box.
static int CENTER
          Enabled: The central position in an area.
static int EAST
          Enabled: Compass-direction east (right).
static int HORIZONTAL
          Enabled: Horizontal orientation.
static int LEADING
          Enabled: Identifies the leading edge of text for use with left-to-right and right-to-left languages.
static int LEFT
          Enabled: Box-orientation constant used to specify the left side of a box.
static int NEXT
          Enabled: Identifies the next direction in a sequence.
static int NORTH
          Enabled: Compass-direction North (up).
static int NORTH_EAST
          Enabled: Compass-direction north-east (upper right).
static int NORTH_WEST
          Enabled: Compass-direction north west (upper left).
static int PREVIOUS
          Enabled: Identifies the previous direction in a sequence.
static int RIGHT
          Enabled: Box-orientation constant used to specify the right side of a box.
static int SOUTH
          Enabled: Compass-direction south (down).
static int SOUTH_EAST
          Enabled: Compass-direction south-east (lower right).
static int SOUTH_WEST
          Enabled: Compass-direction south-west (lower left).
static int TOP
          Enabled: Box-orientation constant used to specify the top of a box.
static int TRAILING
          Enabled: Identifies the trailing edge of text for use with left-to-right and right-to-left languages.
static int VERTICAL
          Enabled: Vertical orientation.
static int WEST
          Enabled: Compass-direction west (left).
 

Field Detail

CENTER

public static final int CENTER
Enabled: The central position in an area. Used for both compass-direction constants (NORTH, etc.) and box-orientation constants (TOP, etc.).


TOP

public static final int TOP
Enabled: Box-orientation constant used to specify the top of a box.


LEFT

public static final int LEFT
Enabled: Box-orientation constant used to specify the left side of a box.


BOTTOM

public static final int BOTTOM
Enabled: Box-orientation constant used to specify the bottom of a box.


RIGHT

public static final int RIGHT
Enabled: Box-orientation constant used to specify the right side of a box.


NORTH

public static final int NORTH
Enabled: Compass-direction North (up).


NORTH_EAST

public static final int NORTH_EAST
Enabled: Compass-direction north-east (upper right).


EAST

public static final int EAST
Enabled: Compass-direction east (right).


SOUTH_EAST

public static final int SOUTH_EAST
Enabled: Compass-direction south-east (lower right).


SOUTH

public static final int SOUTH
Enabled: Compass-direction south (down).


SOUTH_WEST

public static final int SOUTH_WEST
Enabled: Compass-direction south-west (lower left).


WEST

public static final int WEST
Enabled: Compass-direction west (left).


NORTH_WEST

public static final int NORTH_WEST
Enabled: Compass-direction north west (upper left).


HORIZONTAL

public static final int HORIZONTAL
Enabled: Horizontal orientation. Used for scrollbars and sliders.


VERTICAL

public static final int VERTICAL
Enabled: Vertical orientation. Used for scrollbars and sliders.


LEADING

public static final int LEADING
Enabled: Identifies the leading edge of text for use with left-to-right and right-to-left languages. Used by buttons and labels.


TRAILING

public static final int TRAILING
Enabled: Identifies the trailing edge of text for use with left-to-right and right-to-left languages. Used by buttons and labels.


NEXT

public static final int NEXT
Enabled: Identifies the next direction in a sequence.

Since:
1.4

PREVIOUS

public static final int PREVIOUS
Enabled: Identifies the previous direction in a sequence.

Since:
1.4


comments?