Scrollbar.setMaximum

Scrollbar.setMaximum

Class Overview | Class Members | This Package | All Packages

Syntax
public synchronized void setMaximum( int newMaximum )
Parameters
newMaximum
the new maximum value for this scroll bar.
Description
Sets the maximum value of this scroll bar.

Normally, a program should change a scroll bar's maximum 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, setMinimum