It's not a secret anymore!*
The moose likes Java in General and the fly likes How to force cursor to update Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to force cursor to update" Watch "How to force cursor to update" New topic
Author

How to force cursor to update

zoe goddard
Ranch Hand

Joined: Dec 12, 2000
Posts: 74
While I open a file (some of which take awhile) I change the cursor to a wait cursor. The problem is when the cursor leaves the window and returns the cursor isn't a wait cursor. I tried to solve this by keeping track of the cursor state and catch the mouse entering window event and setting the cursor then. However what happens is that the cursor doesn't actually change until the opening of the file is complete.
My question is : Do I have have my file open in its own thread, or is there another way to force the cursor to update (some sort of flush events command) ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to force cursor to update