File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help with wait cursor and setEnable( false )

 
Davie Lin
Ranch Hand
Posts: 294
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

Please help me with an issue I have. I have a button and when user click it, it does some calculation in another thread and I am doing fine on that part. But I want the cursor to change to hour glass and also setEnable( false ). I don't know why but when I first click the button, the cursor is changed to hour glass but as soon as I move the mouse, it change back to the default. My component on the screen will not be enable until the other thread has finish the calculation. Here is the code



what I really confused about is when I comment out


the cursor will stay as hour glass and will not change back until the calculation has completed. but this is not desireable because even if the cursor is hour glass, the user can still click a button and leave the screen before the calculation has completed. Please help me if you have any experience with issue before.

Thank you
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your call to set the cursor is correct.
But, the following line should be changed
Davie Lin wrote:

to:
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic