| Package | Description | 
|---|---|
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| javax.swing.plaf.basic | Provides user interface objects built according to the
Basic look and feel. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | JScrollPane.ScrollBarBy default  JScrollPanecreates scrollbars
 that are instances
 of this class. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected JScrollBar | JScrollPane. horizontalScrollBarThe scrollpane's horizontal scrollbar child. | 
| protected JScrollBar | ScrollPaneLayout. hsbThe scrollpane's horizontal scrollbar child. | 
| protected JScrollBar | JScrollPane. verticalScrollBarThe scrollpane's vertical scrollbar child. | 
| protected JScrollBar | ScrollPaneLayout. vsbThe scrollpane's vertical scrollbar child. | 
| Modifier and Type | Method and Description | 
|---|---|
| JScrollBar | JScrollPane. createHorizontalScrollBar()Returns a  JScrollPane.ScrollBarby default. | 
| JScrollBar | JScrollPane. createVerticalScrollBar()Returns a  JScrollPane.ScrollBarby default. | 
| JScrollBar | JScrollPane. getHorizontalScrollBar()Returns the horizontal scroll bar that controls the viewport's
 horizontal view position. | 
| JScrollBar | ScrollPaneLayout. getHorizontalScrollBar()Returns the  JScrollBarobject that handles horizontal scrolling. | 
| JScrollBar | JScrollPane. getVerticalScrollBar()Returns the vertical scroll bar that controls the viewports
 vertical view position. | 
| JScrollBar | ScrollPaneLayout. getVerticalScrollBar()Returns the  JScrollBarobject that handles vertical scrolling. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | JScrollPane. setHorizontalScrollBar(JScrollBar horizontalScrollBar)Adds the scrollbar that controls the viewport's horizontal view
 position to the scrollpane. | 
| void | JScrollPane. setVerticalScrollBar(JScrollBar verticalScrollBar)Adds the scrollbar that controls the viewports vertical view position
 to the scrollpane. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected JScrollBar | BasicScrollBarUI. scrollbar | 
| protected JScrollBar | BasicTreeUI.ComponentHandler. scrollBarScrollBar that is being adjusted. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | BasicScrollBarUI. layoutHScrollbar(JScrollBar sb) | 
| protected void | BasicScrollBarUI. layoutVScrollbar(JScrollBar sb) | 
 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, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.