public void mouseEntered(MouseEvent e){
  JComponent c=(JComponent)e.getSource();
  c.setCursor(cursor);
}

public void mouseEntered ( MouseEvent e ) { JComponent c = ( JComponent ) e . getSource ( ) ; c . setCursor ( cursor ) ; }
show a special cursor while the mouse is inside the window
