How can I change the cusror when the mouse button is pressed?
Created May 4, 2012
Sandip Chitale
comp.addMouseListener( new MouseAdapter() { public void mousePressed(MouseEvent me) { // If you are using swing you may want to use // SwingUtilities.invokeLater(new Runnable { // public void run() { comp.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); // This helps sometimes Toolkit.getDefaultToolkit().sync(); }});