- 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 SummaryFields Modifier and Type Field Description static intBOTTOMBox-orientation constant used to specify the bottom of a box.static intCENTERThe central position in an area.static intEASTCompass-direction east (right).static intHORIZONTALHorizontal orientation.static intLEADINGIdentifies the leading edge of text for use with left-to-right and right-to-left languages.static intLEFTBox-orientation constant used to specify the left side of a box.static intNEXTIdentifies the next direction in a sequence.static intNORTHCompass-direction North (up).static intNORTH_EASTCompass-direction north-east (upper right).static intNORTH_WESTCompass-direction north west (upper left).static intPREVIOUSIdentifies the previous direction in a sequence.static intRIGHTBox-orientation constant used to specify the right side of a box.static intSOUTHCompass-direction south (down).static intSOUTH_EASTCompass-direction south-east (lower right).static intSOUTH_WESTCompass-direction south-west (lower left).static intTOPBox-orientation constant used to specify the top of a box.static intTRAILINGIdentifies the trailing edge of text for use with left-to-right and right-to-left languages.static intVERTICALVertical orientation.static intWESTCompass-direction west (left).
- 
Field Details- 
CENTERstatic final int CENTERThe central position in an area. Used for both compass-direction constants (NORTH, etc.) and box-orientation constants (TOP, etc.).- See Also:
- Constant Field Values
 
- 
TOPstatic final int TOPBox-orientation constant used to specify the top of a box.- See Also:
- Constant Field Values
 
- 
LEFTstatic final int LEFTBox-orientation constant used to specify the left side of a box.- See Also:
- Constant Field Values
 
- 
BOTTOMstatic final int BOTTOMBox-orientation constant used to specify the bottom of a box.- See Also:
- Constant Field Values
 
- 
RIGHTstatic final int RIGHTBox-orientation constant used to specify the right side of a box.- See Also:
- Constant Field Values
 
- 
NORTHstatic final int NORTHCompass-direction North (up).- See Also:
- Constant Field Values
 
- 
NORTH_EASTstatic final int NORTH_EASTCompass-direction north-east (upper right).- See Also:
- Constant Field Values
 
- 
EASTstatic final int EASTCompass-direction east (right).- See Also:
- Constant Field Values
 
- 
SOUTH_EASTstatic final int SOUTH_EASTCompass-direction south-east (lower right).- See Also:
- Constant Field Values
 
- 
SOUTHstatic final int SOUTHCompass-direction south (down).- See Also:
- Constant Field Values
 
- 
SOUTH_WESTstatic final int SOUTH_WESTCompass-direction south-west (lower left).- See Also:
- Constant Field Values
 
- 
WESTstatic final int WESTCompass-direction west (left).- See Also:
- Constant Field Values
 
- 
NORTH_WESTstatic final int NORTH_WESTCompass-direction north west (upper left).- See Also:
- Constant Field Values
 
- 
HORIZONTALstatic final int HORIZONTALHorizontal orientation. Used for scrollbars and sliders.- See Also:
- Constant Field Values
 
- 
VERTICALstatic final int VERTICALVertical orientation. Used for scrollbars and sliders.- See Also:
- Constant Field Values
 
- 
LEADINGstatic final int LEADINGIdentifies 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
 
- 
TRAILINGstatic final int TRAILINGIdentifies 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
 
- 
NEXTstatic final int NEXTIdentifies the next direction in a sequence.- Since:
- 1.4
- See Also:
- Constant Field Values
 
- 
PREVIOUSstatic final int PREVIOUSIdentifies the previous direction in a sequence.- Since:
- 1.4
- See Also:
- Constant Field Values
 
 
-