Javatpoint Logo
Javatpoint Logo

Java AWT Scrollbar

The object of Scrollbar class is used to add horizontal and vertical scrollbar. Scrollbar is a GUI component allows us to see invisible number of rows and columns.

AWT Scrollbar class declaration

Java AWT Scrollbar Example

Output:

java awt scrollbar example 1

Java AWT Scrollbar Example with AdjustmentListener

Output:

java awt scrollbar example 2



Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA