javax.swing.plaf.basic

Class BasicScrollBarUI.ArrowButtonListener

protected class BasicScrollBarUI.ArrowButtonListener extends MouseAdapter

A helper class that listens to the two JButtons on each end of the JScrollBar.
Method Summary
voidmousePressed(MouseEvent e)
Move the thumb in the direction specified by the button's arrow.
voidmouseReleased(MouseEvent e)
Stops the thumb when the JButton is released.

Method Detail

mousePressed

public void mousePressed(MouseEvent e)
Move the thumb in the direction specified by the button's arrow. If this button is held down, then it should keep moving the thumb.

Parameters: e The MouseEvent fired by the JButton.

mouseReleased

public void mouseReleased(MouseEvent e)
Stops the thumb when the JButton is released.

Parameters: e The MouseEvent fired by the JButton.