2

Possible Duplicate:
How to make a JFrame Modal in Swing java

How to make JFrame to be modal?

Please don't suggest to use JDialog. The question is about JFrame. How to make modal namely it?

Community
  • 1
  • 1
Suzan Cioc
  • 27,971
  • 54
  • 206
  • 370

1 Answers1

4

to make a JFrame modal u have to write code u'r self, make setEnable(false) to the primary window (from where u openning new JFrame ). when user quit the Jframe make it setEnable(true)

br

DRastislav
  • 1,872
  • 3
  • 25
  • 38