Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 304
  • Last Modified:

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,


1 Solution
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...
dumdum420Author Commented:
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.

Dear expert(s),

A request has been made to close this Q in CS:

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.


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.
Saving this Q as a PAQ and refunding the points to the questionner


Community Support Moderator
Experts Exchange

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now