public interface SwingConstants
A collection of constants generally used for positioning and orienting components on the screen.
static final int CENTER
The central position in an area. Used for both compass-direction constants (NORTH, etc.) and box-orientation constants (TOP, etc.).
static final int TOP
Box-orientation constant used to specify the top of a box.
static final int LEFT
Box-orientation constant used to specify the left side of a box.
static final int BOTTOM
Box-orientation constant used to specify the bottom of a box.
static final int RIGHT
Box-orientation constant used to specify the right side of a box.
static final int NORTH
Compass-direction North (up).
static final int NORTH_EAST
Compass-direction north-east (upper right).
static final int EAST
Compass-direction east (right).
static final int SOUTH_EAST
Compass-direction south-east (lower right).
static final int SOUTH
Compass-direction south (down).
static final int SOUTH_WEST
Compass-direction south-west (lower left).
static final int WEST
Compass-direction west (left).
static final int NORTH_WEST
Compass-direction north west (upper left).
static final int HORIZONTAL
Horizontal orientation. Used for scrollbars and sliders.
static final int VERTICAL
Vertical orientation. Used for scrollbars and sliders.
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.
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.
static final int NEXT
Identifies the next direction in a sequence.
static final int PREVIOUS
Identifies the previous direction in a sequence.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.