public JScrollBar (int orientation, int value, int extent, int min, int max)

Creates a scrollbar with the specified orientation, value, extent, minimum, and maximum. The "extent" is the size of the viewable area. It is also known as the "visible amount".

Note: Use setBlockIncrement to set the block increment to a size slightly smaller than the view's extent. That way, when the user jumps the knob to an adjacent position, one or two lines of the original contents remain in view.

Parameters:
orientation    an orientation of the JScrollBar
value    an int giving the current value
extent    an int giving the amount by which the value can "jump"
min    an int giving the minimum value
max    an int giving the maximum value

Exceptions:
IllegalArgumentException    if orientation is not one of VERTICAL, HORIZONTAL

See also:
setOrientation, setValue, setVisibleAmount, setMinimum, setMaximum