This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Mouse Cursor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Mouse Cursor" Watch "Mouse Cursor" New topic

Mouse Cursor

lisa zhang

Joined: May 10, 2004
Posts: 2
I have a problem about mouse cursor.
I write an application, the main frame of which is inherited fram JFrame. I initiated the frame with frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE).
I do some operations following the steps:
a.Move the mouse on the title bar and left click "Maximum" icon b.Left click "minimum" icon c.Left click the application icon d.Left click the "resume" icon e.Repeat the above step for some times,the mouse will become a double arrowhead icon and never recover.
how can i solve the problem.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Once the resize cursor appears, does your application respond in any way at all? If not, your application is locked up because the AWT event thread is blocked on something. Does your application make use of any custom components? There could be thread synchronization issues or problems with the painting/resizing code used in these components.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
lisa zhang

Joined: May 10, 2004
Posts: 2
in the frame , some panel components are contained.
I tried several times , at last I found the reason that when a user clicked max or recovery icon on the title bar of the frame, but before changing the size of the frame, I just putting the cursor on the bound of the fame, the style of the cursor would change into double arrow. after finishing the changes of the size of the fame, then putting the cursor on any place of the frame , the style of the cursor always remains double arrow and not recover normal style - single arrow.
how can I solve the promble?
I agree. Here's the link:
subject: Mouse Cursor
It's not a secret anymore!