Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Window switching focus

K. Tsang
Posts: 3547
Android Java
  • Mark post as helpful
  • send pies
  • 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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic