Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cursor problem when moving around the frames

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic