javax.swing.plaf.basic

Class BasicSliderUI.ChangeHandler

public class BasicSliderUI.ChangeHandler extends Object implements ChangeListener

Helper class that listens to the {@link JSlider}'s model for changes.

UNKNOWN: Apparently this class was intended to be protected, but was made public by a compiler bug and is now public for compatibility.

Method Summary
voidstateChanged(ChangeEvent e)
Called when the slider's model has been altered.

Method Detail

stateChanged

public void stateChanged(ChangeEvent e)
Called when the slider's model has been altered. The UI delegate should recalculate any rectangles that are dependent on the model for their positions and repaint.

Parameters: e A static {@link ChangeEvent} passed from the model.