wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Set Wait Cursor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Set Wait Cursor " Watch "Set Wait Cursor " New topic
Author

Set Wait Cursor

Nandini Chakrabarty
Greenhorn

Joined: Jun 22, 2001
Posts: 4
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

Joined: Jan 09, 2001
Posts: 1492
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

Joined: Jun 03, 2000
Posts: 5040

Nandini:
knock knock....
pl continue the discussion here....
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
Consider Paul's rocket mass heater.
 
subject: Set Wait Cursor
 
Similar Threads
setWaitCursor.
What is the common structure for your ActionListeners?
Errors in Frame
Trying to get this button to work
Change cursor