How to make JFrame to be modal?

1k Views Asked by At

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?

1

There are 1 best solutions below

1
On

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