Exemplo n.º 1
0
 public void mouseEntered(MouseEvent e) {
   super.mouseEntered(e);
   if (slider.isEnabled()) {
     isRollover = thumbRect.contains(e.getPoint());
     slider.repaint();
   }
 }
Exemplo n.º 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);
 }