wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Window switching focus Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Window switching focus" Watch "Window switching focus" New topic
Author

Window switching focus

K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2243
    
    7

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.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Window switching focus
 
Similar Threads
JDialog Focus
JDialog
how to restrict the focus between parent and child JFrame??
Correct behaviour when launching a new window and getting rid of the first window
JDialog Window hides