Scrollbar.setValue

Scrollbar.setValue

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized void setValue( int newValue )
Parameters
newValue
the new value of the scroll bar.
Description
Sets the value of this scroll bar to the specified value.

If the value supplied is less than the current minimum or greater than the current maximum, then one of those values is substituted, as appropriate.

Normally, a program should change a scroll bar's value only by calling setValues. The setValues method simultaneously and synchronously sets the minimum, maximum, visible amount, and value properties of a scroll bar, so that they are mutually consistent.

See Also
setValues, getValue, getMinimum, getMaximum