File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Cursor problem when moving around the frames Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Cursor problem when moving around the frames " Watch "Cursor problem when moving around the frames " New topic
Author

Cursor problem when moving around the frames

Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 576

Hi,

This is the problem which can be easily solvable. But, I'm not getting right point to look into it. When I set the cursor to busy state on one of the frames in my application under process of a task, I move the cursor out of this frame and take back again into this. Here my cursor is changed to default cursor( which I should get after completing my task process). After a few seconds it again goes to busy state. Finally after my task is completed it comes to normal state which is expected.
I wonder why the cursor is changing to normal state and again to busy state after I move it into the frame. How this problem be solved? Please help me into this.

Thanks and Regards,
Narendranath.


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
I made this test app to explore your question. It seems to work well enough. So what could be causing the delay in the resetting of your components cursor? The only things I can think of are:

1 — trouble with any of the many conditions set forward in the Component method setCursor.

2 — the possibility that the event dispatch thread is busy and unable to update the gui.

Maybe you can modify this to demonstrate your situation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cursor problem when moving around the frames
 
Similar Threads
Resizing frame when positioning the mouse in the frame
GUI Thread Safety - Exam questions
JFrame not repainting when overlayed JDialog is closed
Jdk1.6 setCursor() with EventQueque thread showing Hourglass on parent window after closing frame
JInternalFrame iconifying position issue