aspose 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cursor problem when moving around the frames