• 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

Window switching focus

 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all, I have a JFrame main window. then I click button and another JFrame opens (call this window sub window). I continue doing stuff with my main window WITHOUT closing the sub window. Now I click another button open JDialog box. When I close the JDialog, the sub window becomes focus/comes in front of the main window - when I just want it to remain at the back until i manually make it focus.

Think of the sub window is like the help program, when a JDialog closes you see the help program jump at you. Very unlikely.

How to achieve this? The main window and sub window are 2 different classes.
 
reply
    Bookmark Topic Watch Topic
  • New Topic