Scrollbar Members

Scrollbar Members

Class Overview | This Package | All Packages

Fields
Name Description
HORIZONTAL A constant that indicates a horizontal scroll bar.
VERTICAL A constant that indicates a vertical scroll bar.

Constructors
Name Description
Scrollbar() Constructs a new vertical scroll bar.
Scrollbar(int) Constructs a new scroll bar with the specified orientation.
Scrollbar(int, int, int, int, int) Constructs a new scroll bar with the specified orientation, initial value, page size, and minimum and maximum values.

Methods
Name Description
addAdjustmentListener(AdjustmentListener) Adds the specified adjustment listener to receive instances of AdjustmentEvent from this scroll bar.
addNotify() Creates the Scrollbar's peer.
getBlockIncrement() Gets the block increment of this scroll bar.
getLineIncrement() Deprecated.
getMaximum() Gets the maximum value of this scroll bar.
getMinimum() Gets the minimum value of this scroll bar.
getOrientation() Determines the orientation of this scroll bar.
getPageIncrement() Deprecated.
getUnitIncrement() Gets the unit increment for this scrollbar.
getValue() Gets the current value of this scroll bar.
getVisible() Deprecated.
getVisibleAmount() Gets the visible amount of this scroll bar.
paramString() Returns the parameter string representing the state of this scroll bar.
processAdjustmentEvent(AdjustmentEvent) Processes adjustment events occurring on this scrollbar by dispatching them to any registered AdjustmentListener objects.
processEvent(AWTEvent) Processes events on this scroll bar.
removeAdjustmentListener(AdjustmentListener) Removes the specified adjustment listener so that it no longer receives instances of AdjustmentEvent from this scroll bar.
setBlockIncrement(int) Sets the block increment for this scroll bar.
setLineIncrement(int) Deprecated.
setMaximum(int) Sets the maximum value of this scroll bar.
setMinimum(int) Sets the minimum value of this scroll bar.
setOrientation(int) Sets the orientation for this scroll bar.
setPageIncrement(int) Deprecated.
setUnitIncrement(int) Sets the unit increment for this scroll bar.
setValue(int) Sets the value of this scroll bar to the specified value.
setValues(int, int, int, int) Sets the values of four properties for this scroll bar.
setVisibleAmount(int) Sets the visible amount of this scroll bar.