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