• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Set Wait Cursor

 
Nandini Chakrabarty
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Threre are two Buttons("Save", "Message").If a click "Save" button - it starts to find a particular file from my directory.If file is not there - wait cursor will appear-if file is there wait cursor became default cursor.My main problem is -my wait cursor does not work on window. How can I do it?please give me some solution as early as possible.

My Existing code is as follows -

Thank you.
Nandini

ps:
Nandini:
Welcome to the javaranch.
When posting long code (actually any code) please use the [ code ] openinig and closing tags (without the spaces) so that the code is properly formated. Also, I have deleted your other two (exact same) posts -
post once read from anywhere.
Hope you like this place.
Thanks for your cooperation.
- satya

[This message has been edited by Madhav Lakkapragada (edited June 22, 2001).]
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nandini,
I think all you need to do is inside your actionPerformed method is to get the button parent (which should be CursorDemo) and call the setCursor on it.

Regards,
Manfred.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Nandini:
knock knock....
pl continue the discussion here....
- satya
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic