Spec-Zone.ru › OpenJDK 27

Interface SwingConstants

All Known Implementing Classes:
AbstractButton, AsyncBoxView, BasicArrowButton, BasicComboBoxRenderer, BasicComboBoxRenderer.UIResource, BasicInternalFrameUI.BorderListener, BasicScrollBarUI, BasicTabbedPaneUI, BasicToolBarUI, BlockView, BoxView, ComponentView, CompositeView, DefaultListCellRenderer, DefaultListCellRenderer.UIResource, DefaultTableCellRenderer, DefaultTableCellRenderer.UIResource, DefaultTreeCellEditor.DefaultTextField, DefaultTreeCellRenderer, FieldView, FlowView, FormView, GlyphView, IconView, ImageView, InlineView, JButton, JCheckBox, JCheckBoxMenuItem, JFormattedTextField, JLabel, JMenu, JMenuItem, JPasswordField, JPopupMenu.Separator, JProgressBar, JRadioButton, JRadioButtonMenuItem, JSeparator, JSlider, JTabbedPane, JTextField, JToggleButton, JToolBar, JToolBar.Separator, LabelView, ListView, MetalBorders.ToolBarBorder, MetalComboBoxButton, MetalFileChooserUI.FileRenderer, MetalFileChooserUI.FilterComboBoxRenderer, MetalScrollBarUI, MetalScrollButton, MetalTabbedPaneUI, MetalToolBarUI, ObjectView, ParagraphView, ParagraphView, PasswordView, PlainView, SwingUtilities, SynthScrollBarUI, SynthTabbedPaneUI, SynthToolBarUI, TableView, TableView.TableCell, TableView.TableRow, View, WrappedPlainView, ZoneView
public interface SwingConstants
A collection of constants generally used for positioning and orienting components on the screen.
Since:
1.2

Field Summary

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

Field Details

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

static final int TOP
Box-orientation constant used to specify the top of a box.
See Also:
  • Constant Field Values

LEFT

static final int LEFT
Box-orientation constant used to specify the left side of a box.
See Also:
  • Constant Field Values

BOTTOM

static final int BOTTOM
Box-orientation constant used to specify the bottom of a box.
See Also:
  • Constant Field Values

RIGHT

static final int RIGHT
Box-orientation constant used to specify the right side of a box.
See Also:
  • Constant Field Values

NORTH

static final int NORTH
Compass-direction North (up).
See Also:
  • Constant Field Values

NORTH_EAST

static final int NORTH_EAST
Compass-direction north-east (upper right).
See Also:
  • Constant Field Values

EAST

static final int EAST
Compass-direction east (right).
See Also:
  • Constant Field Values

SOUTH_EAST

static final int SOUTH_EAST
Compass-direction south-east (lower right).
See Also:
  • Constant Field Values

SOUTH

static final int SOUTH
Compass-direction south (down).
See Also:
  • Constant Field Values

SOUTH_WEST

static final int SOUTH_WEST
Compass-direction south-west (lower left).
See Also:
  • Constant Field Values

WEST

static final int WEST
Compass-direction west (left).
See Also:
  • Constant Field Values

NORTH_WEST

static final int NORTH_WEST
Compass-direction north west (upper left).
See Also:
  • Constant Field Values

HORIZONTAL

static final int HORIZONTAL
Horizontal orientation. Used for scrollbars and sliders.
See Also:
  • Constant Field Values

VERTICAL

static final int VERTICAL
Vertical orientation. Used for scrollbars and sliders.
See Also:
  • Constant Field Values

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

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

static final int NEXT
Identifies the next direction in a sequence.
Since:
1.4
See Also:
  • Constant Field Values

PREVIOUS

static final int PREVIOUS
Identifies the previous direction in a sequence.
Since:
1.4
See Also:
  • Constant Field Values

Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2026, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.

© 1993, 2025, 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.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API