Java java.awt Scrollbar fields, constructors, methods, implement or subclass

Example usage for Java java.awt Scrollbar fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt Scrollbar.

The text is from its open source code.

Field

intHORIZONTAL
A constant that indicates a horizontal scroll bar.

Constructor

Scrollbar(int orientation, int value, int visible, int minimum, int maximum)
Constructs a new scroll bar with the specified orientation, initial value, visible amount, and minimum and maximum values.

Method

voidaddAdjustmentListener(AdjustmentListener l)
Adds the specified adjustment listener to receive instances of AdjustmentEvent from this scroll bar.
intgetValue()
Gets the current value of this scroll bar.
voidsetSize(int width, int height)
Resizes this component so that it has width width and height height .