?
Solved

Swing Cursor Problem?

Posted on 2003-03-21
5
Medium Priority
?
303 Views
Last Modified: 2008-02-26
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



0
Comment
Question by:dumdum420
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Expert Comment

by:Wysiwyg
ID: 8190470
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...
0
 

Author Comment

by:dumdum420
ID: 8190742
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.

0
 

Expert Comment

by:modulo
ID: 8197960
Dear expert(s),

A request has been made to close this Q in CS:
http://www.experts-exchange.com/Community_Support/Q_20561432.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
0
 
LVL 24

Expert Comment

by:sciuriware
ID: 8201699
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!
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 8221574
Saving this Q as a PAQ and refunding the points to the questionner

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month11 days, 23 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question