Esempio n. 1
0
 public void mouseExited(MouseEvent e) {
   super.mouseExited(e);
   if (slider.isEnabled()) {
     isRollover = false;
     slider.repaint();
   }
 }
Esempio n. 2
0
 public void mouseEntered(MouseEvent e) {
   super.mouseEntered(e);
   if (slider.isEnabled()) {
     isRollover = thumbRect.contains(e.getPoint());
     slider.repaint();
   }
 }
Esempio n. 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();
     }
   }
 }
Esempio n. 4
0
 public void mouseReleased(MouseEvent e) {
   super.mouseReleased(e);
   Rectangle r = getTrackBounds();
   scrollbar.repaint(r.x, r.y, r.width, r.height);
 }
Esempio n. 5
0
 public void mouseExited(MouseEvent e) {
   super.mouseExited(e);
   isRollover = false;
   Rectangle r = getTrackBounds();
   scrollbar.repaint(r.x, r.y, r.width, r.height);
 }