• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mouse Cursor

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic