This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mouse Cursor

 
lisa zhang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
lisa zhang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic