• 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

Swing App Full Screen Mode

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

I have developed a full screen frame for a login interface. In order to avoid user minimizing that window by pressing "windows key" or alt+tab or alt+ctrl+del I have added a window activation/deactivation listener. so whenever the frame is deactivated, event-listening code will activate it by calling extendedState() method. But sometimes when frame is restored (after it's minimized) components in that frame won't be drawn on screen properly. sometimes some sort of a color mess (color dots/lines,etc) is displayed rather than the intended components.
Is there any way to avoid that?

Regards,
VIRAJ
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Run the screen update in synchronized thread.

Cheers
Kiran
 
reply
    Bookmark Topic Watch Topic
  • New Topic