Beispiel #1
0
 public void mouseExited(MouseEvent e) {
   super.mouseExited(e);
   if (slider.isEnabled()) {
     isRollover = false;
     slider.repaint();
   }
 }
Beispiel #2
0
 public void mouseEntered(MouseEvent e) {
   super.mouseEntered(e);
   if (slider.isEnabled()) {
     isRollover = thumbRect.contains(e.getPoint());
     slider.repaint();
   }
 }
Beispiel #3
0
 public void mouseMoved(MouseEvent e) {
   super.mouseMoved(e);
   if (slider.isEnabled()) {
     boolean rollover = thumbRect.contains(e.getPoint());
     if (rollover != isRollover) {
       isRollover = rollover;
       slider.repaint();
     }
   }
 }
 public void mouseReleased(MouseEvent e) {
   super.mouseReleased(e);
   Rectangle r = getTrackBounds();
   scrollbar.repaint(r.x, r.y, r.width, r.height);
 }
 public void mouseExited(MouseEvent e) {
   super.mouseExited(e);
   isRollover = false;
   Rectangle r = getTrackBounds();
   scrollbar.repaint(r.x, r.y, r.width, r.height);
 }