Scrollbar.setValues

Scrollbar.setValues

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized void setValues( int value, int visible, int minimum, int maximum )
Parameters
value
is the position in the current window.
visible
is the amount visible per page.
minimum
is the minimum value of the scroll bar.
maximum
is the maximum value of the scroll bar.
Description
Sets the values of four properties for this scroll bar.

This method simultaneously and synchronously sets the values of four scroll bar properties, assuring that the values of these properties are mutually consistent. It enforces the constraints that maximum cannot be less than minimum, and that value cannot be less than the minimum or greater than the maximum.