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