public interface

SwingConstants

javax.swing.SwingConstants
Known Indirect Subclasses

Class Overview

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

Summary

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

Constants

public static final int BOTTOM

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

Constant Value: 3 (0x00000003)

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.).

Constant Value: 0 (0x00000000)

public static final int EAST

Compass-direction east (right).

Constant Value: 3 (0x00000003)

public static final int HORIZONTAL

Horizontal orientation. Used for scrollbars and sliders.

Constant Value: 0 (0x00000000)

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.

Constant Value: 10 (0x0000000a)

public static final int LEFT

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

Constant Value: 2 (0x00000002)

public static final int NEXT

Identifies the next direction in a sequence.

Constant Value: 12 (0x0000000c)

public static final int NORTH

Compass-direction North (up).

Constant Value: 1 (0x00000001)

public static final int NORTH_EAST

Compass-direction north-east (upper right).

Constant Value: 2 (0x00000002)

public static final int NORTH_WEST

Compass-direction north west (upper left).

Constant Value: 8 (0x00000008)

public static final int PREVIOUS

Identifies the previous direction in a sequence.

Constant Value: 13 (0x0000000d)

public static final int RIGHT

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

Constant Value: 4 (0x00000004)

public static final int SOUTH

Compass-direction south (down).

Constant Value: 5 (0x00000005)

public static final int SOUTH_EAST

Compass-direction south-east (lower right).

Constant Value: 4 (0x00000004)

public static final int SOUTH_WEST

Compass-direction south-west (lower left).

Constant Value: 6 (0x00000006)

public static final int TOP

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

Constant Value: 1 (0x00000001)

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.

Constant Value: 11 (0x0000000b)

public static final int VERTICAL

Vertical orientation. Used for scrollbars and sliders.

Constant Value: 1 (0x00000001)

public static final int WEST

Compass-direction west (left).

Constant Value: 7 (0x00000007)