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
  • 29,281
  • 63
  • 213
  • 385

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,892
  • 3
  • 26
  • 40