0

I want help in the issue that when I open a child window from the main window then I want main window to be non-focusable when I click on main window i-e the child window should not transfer its focus to the parent window. I am using Java language on Netbeans IDE. Also, I have developed the GUI using Drag n Drop, and I am using swing components.

Fawad Khalil
  • 357
  • 3
  • 20
  • 1
    Make the child window modal. http://www.coderanch.com/t/339276/GUI/java/form-Modal, http://docs.oracle.com/javase/7/docs/api/javax/swing/JDialog.html – Robert Harvey May 06 '14 at 17:41
  • Expansion of the @Robert Harvey comment, this is exactly the reason why modal windows (or dialogues) exist. – DwB May 06 '14 at 18:04
  • possible duplicate of [How to make a JFrame Modal in Swing java](http://stackoverflow.com/questions/1481405/how-to-make-a-jframe-modal-in-swing-java) – demongolem May 06 '14 at 20:13

0 Answers0