-2

Allow Only One Jframe window if try to open other than blinking jframe window in java swing **

HOW

**

mKorbel
  • 109,107
  • 18
  • 130
  • 305

2 Answers2

2

I can only guess what your question is supposed to mean, but my best guess would be that you want to create a modal frame. JFrame doesn't support this type of frame. You'll have to use JDialog (http://docs.oracle.com/javase/7/docs/api/javax/swing/JDialog.html) instead.

JDialog dialog = new JDialog(parentFrame , "someTitle" , true);
... //create dialog

dialog.setVisible(true);
//now the parentFrame is blocked until the dialogwindow is closed
Paul
  • 13,355
  • 3
  • 19
  • 35
2

Allow Only One Jframe window if try to open other than blinking jframe window in java swing

mKorbel
  • 109,107
  • 18
  • 130
  • 305