示例#1
0
 public void mouseEntered(MouseEvent e) {
   super.mouseEntered(e);
   if (slider.isEnabled()) {
     isRollover = thumbRect.contains(e.getPoint());
     slider.repaint();
   }
 }
示例#2
0
 public void mouseEntered(MouseEvent e) {
   super.mouseEntered(e);
   isRollover = true;
   Rectangle r = getTrackBounds();
   scrollbar.repaint(r.x, r.y, r.width, r.height);
 }