javax.swing.plaf.basic
Class BasicScrollBarUI.ArrowButtonListener
java.lang.Object
java.awt.event.MouseAdapter
javax.swing.plaf.basic.BasicScrollBarUI.ArrowButtonListener
- All Implemented Interfaces:
- MouseListener, EventListener
- Enclosing class:
- BasicScrollBarUI
protected class BasicScrollBarUI.ArrowButtonListener
- extends MouseAdapter
A helper class that listens to the two JButtons on each end of the
JScrollBar.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicScrollBarUI.ArrowButtonListener
protected BasicScrollBarUI.ArrowButtonListener()
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.
- Specified by:
mousePressed
in interface MouseListener
- Overrides:
mousePressed
in class MouseAdapter
- Parameters:
e
- The MouseEvent fired by the JButton.
mouseReleased
public void mouseReleased(MouseEvent e)
- Stops the thumb when the JButton is released.
- Specified by:
mouseReleased
in interface MouseListener
- Overrides:
mouseReleased
in class MouseAdapter
- Parameters:
e
- The MouseEvent fired by the JButton.