public void mouseExited(MouseEvent e){
  JComponent c=(JComponent)e.getSource();
  c.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}

public void mouseExited ( MouseEvent e ) { JComponent c = ( JComponent ) e . getSource ( ) ; c . setCursor ( Cursor . getPredefinedCursor ( Cursor . DEFAULT_CURSOR ) ) ; }
revert to the default cursor when the mouse leaves this window
