This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Mouse Cursor" Watch "Mouse Cursor" New topic
Author

Mouse Cursor

lisa zhang
Greenhorn

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
Bartender

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.


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

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?
 
Don't get me started about those stupid light bulbs.
 
subject: Mouse Cursor