ScrollPaneConstants (Java Platform SE 8 ) (original) (raw)
- All Known Implementing Classes:
BasicScrollPaneUI, JScrollPane, MetalScrollPaneUI, ScrollPaneLayout, ScrollPaneLayout.UIResource, SynthScrollPaneUI
public interface ScrollPaneConstants
Constants used with the JScrollPane component.
Field Summary
Fields
Modifier and Type Field Description static String COLUMN_HEADER Identifies the area at the top the viewport between the upper left corner and the upper right corner. static String HORIZONTAL_SCROLLBAR Identifies a horizontal scrollbar. static int HORIZONTAL_SCROLLBAR_ALWAYS Used to set the horizontal scroll bar policy so that horizontal scrollbars are always displayed. static int HORIZONTAL_SCROLLBAR_AS_NEEDED Used to set the horizontal scroll bar policy so that horizontal scrollbars are displayed only when needed. static int HORIZONTAL_SCROLLBAR_NEVER Used to set the horizontal scroll bar policy so that horizontal scrollbars are never displayed. static String HORIZONTAL_SCROLLBAR_POLICY Identifies the horizontal scroll bar policy property. static String LOWER_LEADING_CORNER Identifies the lower leading edge corner of the viewport. static String LOWER_LEFT_CORNER Identifies the lower left corner of the viewport. static String LOWER_RIGHT_CORNER Identifies the lower right corner of the viewport. static String LOWER_TRAILING_CORNER Identifies the lower trailing edge corner of the viewport. static String ROW_HEADER Identifies the area along the left side of the viewport between the upper left corner and the lower left corner. static String UPPER_LEADING_CORNER Identifies the upper leading edge corner of the viewport. static String UPPER_LEFT_CORNER Identifies the upper left corner of the viewport. static String UPPER_RIGHT_CORNER Identifies the upper right corner of the viewport. static String UPPER_TRAILING_CORNER Identifies the upper trailing edge corner of the viewport. static String VERTICAL_SCROLLBAR Identifies a vertical scrollbar. static int VERTICAL_SCROLLBAR_ALWAYS Used to set the vertical scroll bar policy so that vertical scrollbars are always displayed. static int VERTICAL_SCROLLBAR_AS_NEEDED Used to set the vertical scroll bar policy so that vertical scrollbars are displayed only when needed. static int VERTICAL_SCROLLBAR_NEVER Used to set the vertical scroll bar policy so that vertical scrollbars are never displayed. static String VERTICAL_SCROLLBAR_POLICY Identifies the vertical scroll bar policy property. static String VIEWPORT Identifies a "viewport" or display area, within which scrolled contents are visible. Field Detail
* #### VIEWPORT static final [String](../../java/lang/String.html "class in java.lang") VIEWPORT Identifies a "viewport" or display area, within which scrolled contents are visible. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.VIEWPORT) * #### VERTICAL\_SCROLLBAR static final [String](../../java/lang/String.html "class in java.lang") VERTICAL_SCROLLBAR Identifies a vertical scrollbar. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.VERTICAL%5FSCROLLBAR) * #### HORIZONTAL\_SCROLLBAR static final [String](../../java/lang/String.html "class in java.lang") HORIZONTAL_SCROLLBAR Identifies a horizontal scrollbar. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.HORIZONTAL%5FSCROLLBAR) * #### ROW\_HEADER static final [String](../../java/lang/String.html "class in java.lang") ROW_HEADER Identifies the area along the left side of the viewport between the upper left corner and the lower left corner. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.ROW%5FHEADER) * #### COLUMN\_HEADER static final [String](../../java/lang/String.html "class in java.lang") COLUMN_HEADER Identifies the area at the top the viewport between the upper left corner and the upper right corner. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.COLUMN%5FHEADER) * #### LOWER\_LEFT\_CORNER static final [String](../../java/lang/String.html "class in java.lang") LOWER_LEFT_CORNER Identifies the lower left corner of the viewport. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.LOWER%5FLEFT%5FCORNER) * #### LOWER\_RIGHT\_CORNER static final [String](../../java/lang/String.html "class in java.lang") LOWER_RIGHT_CORNER Identifies the lower right corner of the viewport. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.LOWER%5FRIGHT%5FCORNER) * #### UPPER\_LEFT\_CORNER static final [String](../../java/lang/String.html "class in java.lang") UPPER_LEFT_CORNER Identifies the upper left corner of the viewport. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.UPPER%5FLEFT%5FCORNER) * #### UPPER\_RIGHT\_CORNER static final [String](../../java/lang/String.html "class in java.lang") UPPER_RIGHT_CORNER Identifies the upper right corner of the viewport. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.UPPER%5FRIGHT%5FCORNER) * #### LOWER\_LEADING\_CORNER static final [String](../../java/lang/String.html "class in java.lang") LOWER_LEADING_CORNER Identifies the lower leading edge corner of the viewport. The leading edge is determined relative to the Scroll Pane's ComponentOrientation property. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.LOWER%5FLEADING%5FCORNER) * #### LOWER\_TRAILING\_CORNER static final [String](../../java/lang/String.html "class in java.lang") LOWER_TRAILING_CORNER Identifies the lower trailing edge corner of the viewport. The trailing edge is determined relative to the Scroll Pane's ComponentOrientation property. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.LOWER%5FTRAILING%5FCORNER) * #### UPPER\_LEADING\_CORNER static final [String](../../java/lang/String.html "class in java.lang") UPPER_LEADING_CORNER Identifies the upper leading edge corner of the viewport. The leading edge is determined relative to the Scroll Pane's ComponentOrientation property. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.UPPER%5FLEADING%5FCORNER) * #### UPPER\_TRAILING\_CORNER static final [String](../../java/lang/String.html "class in java.lang") UPPER_TRAILING_CORNER Identifies the upper trailing edge corner of the viewport. The trailing edge is determined relative to the Scroll Pane's ComponentOrientation property. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.UPPER%5FTRAILING%5FCORNER) * #### VERTICAL\_SCROLLBAR\_POLICY static final [String](../../java/lang/String.html "class in java.lang") VERTICAL_SCROLLBAR_POLICY Identifies the vertical scroll bar policy property. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.VERTICAL%5FSCROLLBAR%5FPOLICY) * #### HORIZONTAL\_SCROLLBAR\_POLICY static final [String](../../java/lang/String.html "class in java.lang") HORIZONTAL_SCROLLBAR_POLICY Identifies the horizontal scroll bar policy property. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.HORIZONTAL%5FSCROLLBAR%5FPOLICY) * #### VERTICAL\_SCROLLBAR\_AS\_NEEDED static final int VERTICAL_SCROLLBAR_AS_NEEDED Used to set the vertical scroll bar policy so that vertical scrollbars are displayed only when needed. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.VERTICAL%5FSCROLLBAR%5FAS%5FNEEDED) * #### VERTICAL\_SCROLLBAR\_NEVER static final int VERTICAL_SCROLLBAR_NEVER Used to set the vertical scroll bar policy so that vertical scrollbars are never displayed. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.VERTICAL%5FSCROLLBAR%5FNEVER) * #### VERTICAL\_SCROLLBAR\_ALWAYS static final int VERTICAL_SCROLLBAR_ALWAYS Used to set the vertical scroll bar policy so that vertical scrollbars are always displayed. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.VERTICAL%5FSCROLLBAR%5FALWAYS) * #### HORIZONTAL\_SCROLLBAR\_AS\_NEEDED static final int HORIZONTAL_SCROLLBAR_AS_NEEDED Used to set the horizontal scroll bar policy so that horizontal scrollbars are displayed only when needed. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.HORIZONTAL%5FSCROLLBAR%5FAS%5FNEEDED) * #### HORIZONTAL\_SCROLLBAR\_NEVER static final int HORIZONTAL_SCROLLBAR_NEVER Used to set the horizontal scroll bar policy so that horizontal scrollbars are never displayed. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.HORIZONTAL%5FSCROLLBAR%5FNEVER) * #### HORIZONTAL\_SCROLLBAR\_ALWAYS static final int HORIZONTAL_SCROLLBAR_ALWAYS Used to set the horizontal scroll bar policy so that horizontal scrollbars are always displayed. See Also: [Constant Field Values](../../constant-values.html#javax.swing.ScrollPaneConstants.HORIZONTAL%5FSCROLLBAR%5FALWAYS)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.