javax.swing
Interface SwingConstants

All Known Implementing Classes:
AbstractButton sample code for javax.swing.AbstractButton definition code for javax.swing.AbstractButton , AsyncBoxView sample code for javax.swing.text.AsyncBoxView definition code for javax.swing.text.AsyncBoxView , BasicArrowButton sample code for javax.swing.plaf.basic.BasicArrowButton definition code for javax.swing.plaf.basic.BasicArrowButton , BasicComboBoxRenderer sample code for javax.swing.plaf.basic.BasicComboBoxRenderer definition code for javax.swing.plaf.basic.BasicComboBoxRenderer , BasicComboBoxRenderer.UIResource sample code for javax.swing.plaf.basic.BasicComboBoxRenderer.UIResource definition code for javax.swing.plaf.basic.BasicComboBoxRenderer.UIResource , BasicInternalFrameUI.BorderListener sample code for javax.swing.plaf.basic.BasicInternalFrameUI.BorderListener definition code for javax.swing.plaf.basic.BasicInternalFrameUI.BorderListener , BasicScrollBarUI sample code for javax.swing.plaf.basic.BasicScrollBarUI definition code for javax.swing.plaf.basic.BasicScrollBarUI , BasicTabbedPaneUI sample code for javax.swing.plaf.basic.BasicTabbedPaneUI definition code for javax.swing.plaf.basic.BasicTabbedPaneUI , BasicToolBarUI sample code for javax.swing.plaf.basic.BasicToolBarUI definition code for javax.swing.plaf.basic.BasicToolBarUI , BlockView sample code for javax.swing.text.html.BlockView definition code for javax.swing.text.html.BlockView , BoxView sample code for javax.swing.text.BoxView definition code for javax.swing.text.BoxView , ComponentView sample code for javax.swing.text.ComponentView definition code for javax.swing.text.ComponentView , CompositeView sample code for javax.swing.text.CompositeView definition code for javax.swing.text.CompositeView , DefaultListCellRenderer sample code for javax.swing.DefaultListCellRenderer definition code for javax.swing.DefaultListCellRenderer , DefaultListCellRenderer.UIResource sample code for javax.swing.DefaultListCellRenderer.UIResource definition code for javax.swing.DefaultListCellRenderer.UIResource , DefaultTableCellRenderer sample code for javax.swing.table.DefaultTableCellRenderer definition code for javax.swing.table.DefaultTableCellRenderer , DefaultTableCellRenderer.UIResource sample code for javax.swing.table.DefaultTableCellRenderer.UIResource definition code for javax.swing.table.DefaultTableCellRenderer.UIResource , DefaultTreeCellEditor.DefaultTextField sample code for javax.swing.tree.DefaultTreeCellEditor.DefaultTextField definition code for javax.swing.tree.DefaultTreeCellEditor.DefaultTextField , DefaultTreeCellRenderer sample code for javax.swing.tree.DefaultTreeCellRenderer definition code for javax.swing.tree.DefaultTreeCellRenderer , FieldView sample code for javax.swing.text.FieldView definition code for javax.swing.text.FieldView , FlowView sample code for javax.swing.text.FlowView definition code for javax.swing.text.FlowView , FormView sample code for javax.swing.text.html.FormView definition code for javax.swing.text.html.FormView , GlyphView sample code for javax.swing.text.GlyphView definition code for javax.swing.text.GlyphView , IconView sample code for javax.swing.text.IconView definition code for javax.swing.text.IconView , ImageView sample code for javax.swing.text.html.ImageView definition code for javax.swing.text.html.ImageView , InlineView sample code for javax.swing.text.html.InlineView definition code for javax.swing.text.html.InlineView , JButton sample code for javax.swing.JButton definition code for javax.swing.JButton , JCheckBox sample code for javax.swing.JCheckBox definition code for javax.swing.JCheckBox , JCheckBoxMenuItem sample code for javax.swing.JCheckBoxMenuItem definition code for javax.swing.JCheckBoxMenuItem , JFormattedTextField sample code for javax.swing.JFormattedTextField definition code for javax.swing.JFormattedTextField , JLabel sample code for javax.swing.JLabel definition code for javax.swing.JLabel , JMenu sample code for javax.swing.JMenu definition code for javax.swing.JMenu , JMenuItem sample code for javax.swing.JMenuItem definition code for javax.swing.JMenuItem , JPasswordField sample code for javax.swing.JPasswordField definition code for javax.swing.JPasswordField , JPopupMenu.Separator sample code for javax.swing.JPopupMenu.Separator definition code for javax.swing.JPopupMenu.Separator , JProgressBar sample code for javax.swing.JProgressBar definition code for javax.swing.JProgressBar , JRadioButton sample code for javax.swing.JRadioButton definition code for javax.swing.JRadioButton , JRadioButtonMenuItem sample code for javax.swing.JRadioButtonMenuItem definition code for javax.swing.JRadioButtonMenuItem , JSeparator sample code for javax.swing.JSeparator definition code for javax.swing.JSeparator , JSlider sample code for javax.swing.JSlider definition code for javax.swing.JSlider , JTabbedPane sample code for javax.swing.JTabbedPane definition code for javax.swing.JTabbedPane , JTextField sample code for javax.swing.JTextField definition code for javax.swing.JTextField , JToggleButton sample code for javax.swing.JToggleButton definition code for javax.swing.JToggleButton , JToolBar sample code for javax.swing.JToolBar definition code for javax.swing.JToolBar , JToolBar.Separator sample code for javax.swing.JToolBar.Separator definition code for javax.swing.JToolBar.Separator , LabelView sample code for javax.swing.text.LabelView definition code for javax.swing.text.LabelView , ListView sample code for javax.swing.text.html.ListView definition code for javax.swing.text.html.ListView , MetalBorders.ToolBarBorder sample code for javax.swing.plaf.metal.MetalBorders.ToolBarBorder definition code for javax.swing.plaf.metal.MetalBorders.ToolBarBorder , MetalComboBoxButton sample code for javax.swing.plaf.metal.MetalComboBoxButton definition code for javax.swing.plaf.metal.MetalComboBoxButton , MetalFileChooserUI.FileRenderer sample code for javax.swing.plaf.metal.MetalFileChooserUI.FileRenderer definition code for javax.swing.plaf.metal.MetalFileChooserUI.FileRenderer , MetalFileChooserUI.FilterComboBoxRenderer sample code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxRenderer definition code for javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxRenderer , MetalScrollBarUI sample code for javax.swing.plaf.metal.MetalScrollBarUI definition code for javax.swing.plaf.metal.MetalScrollBarUI , MetalScrollButton sample code for javax.swing.plaf.metal.MetalScrollButton definition code for javax.swing.plaf.metal.MetalScrollButton , MetalTabbedPaneUI sample code for javax.swing.plaf.metal.MetalTabbedPaneUI definition code for javax.swing.plaf.metal.MetalTabbedPaneUI , MetalToolBarUI sample code for javax.swing.plaf.metal.MetalToolBarUI definition code for javax.swing.plaf.metal.MetalToolBarUI , ObjectView sample code for javax.swing.text.html.ObjectView definition code for javax.swing.text.html.ObjectView , ParagraphView sample code for javax.swing.text.ParagraphView definition code for javax.swing.text.ParagraphView , ParagraphView sample code for javax.swing.text.html.ParagraphView definition code for javax.swing.text.html.ParagraphView , PasswordView sample code for javax.swing.text.PasswordView definition code for javax.swing.text.PasswordView , PlainView sample code for javax.swing.text.PlainView definition code for javax.swing.text.PlainView , SwingUtilities sample code for javax.swing.SwingUtilities definition code for javax.swing.SwingUtilities , TableView sample code for javax.swing.text.TableView definition code for javax.swing.text.TableView , TableView.TableCell sample code for javax.swing.text.TableView.TableCell definition code for javax.swing.text.TableView.TableCell , TableView.TableRow sample code for javax.swing.text.TableView.TableRow definition code for javax.swing.text.TableView.TableRow , View sample code for javax.swing.text.View definition code for javax.swing.text.View , WrappedPlainView sample code for javax.swing.text.WrappedPlainView definition code for javax.swing.text.WrappedPlainView , ZoneView sample code for javax.swing.text.ZoneView definition code for javax.swing.text.ZoneView

public interface SwingConstants

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


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

Field Detail

CENTER sample code for javax.swing.SwingConstants.CENTER

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

See Also:
Constant Field Values

TOP sample code for javax.swing.SwingConstants.TOP

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

See Also:
Constant Field Values

LEFT sample code for javax.swing.SwingConstants.LEFT

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

See Also:
Constant Field Values

BOTTOM sample code for javax.swing.SwingConstants.BOTTOM

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

See Also:
Constant Field Values

RIGHT sample code for javax.swing.SwingConstants.RIGHT

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

See Also:
Constant Field Values

NORTH sample code for javax.swing.SwingConstants.NORTH

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

See Also:
Constant Field Values

NORTH_EAST sample code for javax.swing.SwingConstants.NORTH_EAST

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

See Also:
Constant Field Values

EAST sample code for javax.swing.SwingConstants.EAST

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

See Also:
Constant Field Values

SOUTH_EAST sample code for javax.swing.SwingConstants.SOUTH_EAST

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

See Also:
Constant Field Values

SOUTH sample code for javax.swing.SwingConstants.SOUTH

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

See Also:
Constant Field Values

SOUTH_WEST sample code for javax.swing.SwingConstants.SOUTH_WEST

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

See Also:
Constant Field Values

WEST sample code for javax.swing.SwingConstants.WEST

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

See Also:
Constant Field Values

NORTH_WEST sample code for javax.swing.SwingConstants.NORTH_WEST

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

See Also:
Constant Field Values

HORIZONTAL sample code for javax.swing.SwingConstants.HORIZONTAL

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

See Also:
Constant Field Values

VERTICAL sample code for javax.swing.SwingConstants.VERTICAL

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

See Also:
Constant Field Values

LEADING sample code for javax.swing.SwingConstants.LEADING

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.

See Also:
Constant Field Values

TRAILING sample code for javax.swing.SwingConstants.TRAILING

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.

See Also:
Constant Field Values

NEXT sample code for javax.swing.SwingConstants.NEXT

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

Since:
1.4
See Also:
Constant Field Values

PREVIOUS sample code for javax.swing.SwingConstants.PREVIOUS

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

Since:
1.4
See Also:
Constant Field Values