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.
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.
Joined: May 10, 2004
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?