public interface javax.swing
SwingConstants


Show All Login
Java SE 6
  
Implemented by: AbstractButton, BasicArrowButton, BasicInternalFrameUI.BorderListener, BasicScrollBarUI, BasicTabbedPaneUI, BasicToolBarUI, JCheckBoxMenuItem, JLabel, JProgressBar, JSeparator, JSlider, JTabbedPane, JTextField, JToolBar, MetalBorders.ToolBarBorder, SwingUtilities, View
Details
A collection of constants generally used for positioning and orienting components on the screen.
version1.17 11/17/05

Fields
final public static int CENTER
The central position in an area. Used for both compass-direction constants (NORTH, etc.) and box-orientation constants (TOP, etc.).
final public static int TOP
Box-orientation constant used to specify the top of a box.
final public static int LEFT
Box-orientation constant used to specify the left side of a box.
final public static int BOTTOM
Box-orientation constant used to specify the bottom of a box.
final public static int RIGHT
Box-orientation constant used to specify the right side of a box.
final public static int NORTH
Compass-direction North (up).
final public static int NORTH_EAST
Compass-direction north-east (upper right).
final public static int EAST
Compass-direction east (right).
final public static int SOUTH_EAST
Compass-direction south-east (lower right).
final public static int SOUTH
Compass-direction south (down).
final public static int SOUTH_WEST
Compass-direction south-west (lower left).
final public static int WEST
Compass-direction west (left).
final public static int NORTH_WEST
Compass-direction north west (upper left).
final public static int HORIZONTAL
Horizontal orientation. Used for scrollbars and sliders.
final public static int VERTICAL
Vertical orientation. Used for scrollbars and sliders.
final public static int LEADING
Identifies the leading edge of text for use with left-to-right and right-to-left languages. Used by buttons and labels.
final public static int TRAILING
Identifies the trailing edge of text for use with left-to-right and right-to-left languages. Used by buttons and labels.
final public static int NEXT Details
Identifies the next direction in a sequence.
since1.4
final public static int PREVIOUS Details
Identifies the previous direction in a sequence.
since1.4