| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.awt.event | Provides interfaces and classes for dealing with different
types of events fired by AWT components. | 
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ScrollbarThe  Scrollbarclass embodies a scroll bar, a
 familiar user-interface object. | 
| class  | ScrollPaneAdjustableThis class represents the state of a horizontal or vertical
 scrollbar of a  ScrollPane. | 
| Modifier and Type | Method and Description | 
|---|---|
| Adjustable | ScrollPane. getHAdjustable()Returns the  ScrollPaneAdjustableobject which
 represents the state of the horizontal scrollbar. | 
| Adjustable | ScrollPane. getVAdjustable()Returns the  ScrollPaneAdjustableobject which
 represents the state of the vertical scrollbar. | 
| Modifier and Type | Method and Description | 
|---|---|
| Adjustable | AdjustmentEvent. getAdjustable()Returns the  Adjustableobject where this event originated. | 
| Constructor and Description | 
|---|
| AdjustmentEvent(Adjustable source,
               int id,
               int type,
               int value)Constructs an  AdjustmentEventobject with the
 specifiedAdjustablesource, event type,
 adjustment type, and value. | 
| AdjustmentEvent(Adjustable source,
               int id,
               int type,
               int value,
               boolean isAdjusting)Constructs an  AdjustmentEventobject with the
 specified Adjustable source, event type, adjustment type, and value. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | JScrollBarAn implementation of a scrollbar. | 
| protected class  | JScrollPane.ScrollBarBy default  JScrollPanecreates scrollbars
 that are instances
 of this class. | 
 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.