• 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

Setting cursor after a dialog closes

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am experiencing problems trying to change the cursor.
My code first opens a JFrame, then a modal dialog is opened hiding a part of my JFrame and finally some long task is performed after the dialog closes.
I'd like to set a wait cursor on my JFrame before starting the long task but the modal dialog thing seems to stop it from working properly.
I know how I could process my long task in a separate thread or postpone my task in the Event Queue, but this heavy to code (my real long task can be interrupted many times by other dialog windows).

This is my test case:


Thanks to tell me if you know any workaround for my problem !
 
Manuel Godbert
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Finally I found out the solution, setting the cursor on the glasspane of the frame instead of the frame itself.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic