javax.swing.plaf.basic

Class BasicScrollPaneUI.ViewportChangeHandler

public class BasicScrollPaneUI.ViewportChangeHandler extends Object implements ChangeListener

Listens for changes of the viewport's extent size and updates the scrollpane accordingly.
Method Summary
voidstateChanged(ChangeEvent event)
Receives notification when the view's size, position or extent size changes.

Method Detail

stateChanged

public void stateChanged(ChangeEvent event)
Receives notification when the view's size, position or extent size changes. When the extents size has changed, this method calls {@link BasicScrollPaneUI#syncScrollPaneWithViewport()} to adjust the scrollbars extents as well.

Parameters: event the change event