Forum Stats

  • 3,851,386 Users
  • 2,263,969 Discussions
  • 7,904,692 Comments

Discussions

Hour glass problem

843807
843807 Member Posts: 46,582
edited Oct 26, 2002 12:31PM in Java Applet Development
I am able to change the cursor to the Hourglass prior to a long running process like so :

setCursor(Cursor.getPredefinedCursor (Cursor.WAIT_CURSOR));
Toolkit.getDefaultToolkit().sync();

Problem is that the cursor reverts to it's default state when the cursor is moved off the Applet or I switch to another application. This gives the impression that the background task has finished, when it hasn't.

Please can anyone tell me how to prevent this.

Hopefully simply as I'm only just a starting out Java programmer !

Thanks
Rajesh

Comments

This discussion has been closed.