dumdum420
asked on
Swing Cursor Problem?
Well I want to put CURSOR.WAIT_CURSOR on my screens when there is a Database call and a new screen is being painted.
I have lots of panels so,I took the instance of JApplet in which all my panels reside and did
JApplet.setCursor(new Cursor(CURSOR.WAIT_CURSOR) );
Now I can see the cursor being set to wait cursor mode, but not in areas where there are editable components used like JEditorPane or JTextField. Now I am really in a fix.
I really need a solution where the cursor can be set to WAIT mode and once the database call is over can be set back to DEFAULT mode and this should work on my entire JApplet.
Thanx in advance,
dumdum
I have lots of panels so,I took the instance of JApplet in which all my panels reside and did
JApplet.setCursor(new Cursor(CURSOR.WAIT_CURSOR)
Now I can see the cursor being set to wait cursor mode, but not in areas where there are editable components used like JEditorPane or JTextField. Now I am really in a fix.
I really need a solution where the cursor can be set to WAIT mode and once the database call is over can be set back to DEFAULT mode and this should work on my entire JApplet.
Thanx in advance,
dumdum
If you want to set the cursor AND disable users from doing anything in the meantime, try popping a modal dialog/frame/window and setting the mouse pointer there. When the call returns it can close the modal...
ASKER
All widgets are already disabled but the Cursor does not stand into WAIT_MODE on JEditorPane which is used quiet a lot on the User Interface. The JEditorPane is being used only to render text and isEditable() in the JEditorPane is set to false.
The modal window approach does not sound to be a great idea.
If i am really not clear please do ask me again.
Thanx in advance.
The modal window approach does not sound to be a great idea.
If i am really not clear please do ask me again.
Thanx in advance.
Dear expert(s),
A request has been made to close this Q in CS:
https://www.experts-exchange.com/questions/20561432/Kindly-delete-this-question-No-answer-received-found-solution-myself.html
Without a response in 72 hrs, a moderator will finalize this question by:
- Saving this Q as a PAQ and refunding the points to the questionner
When you agree or disagree, please add a comment here.
Thank you.
modulo
Community Support Moderator
Experts Exchange
A request has been made to close this Q in CS:
https://www.experts-exchange.com/questions/20561432/Kindly-delete-this-question-No-answer-received-found-solution-myself.html
Without a response in 72 hrs, a moderator will finalize this question by:
- Saving this Q as a PAQ and refunding the points to the questionner
When you agree or disagree, please add a comment here.
Thank you.
modulo
Community Support Moderator
Experts Exchange
I'm interested in this case as I don't get the essence of what's been done wrong to lose the busy cursor.
;JOOP!
;JOOP!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.