Link to home
Start Free TrialLog in
Avatar of nesnemis
nesnemis

asked on

jframe wait for jdialog

Hi

I have a Jframe that opens a Jdialog, When the dialog opens I want the jframe to stop whatever it's doing and wait for the dialog to be closed.
I've tried with wait(), notify(9 and threads, but I can't get it to work

Nesnemis
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Either use the setModal method or create a JDialog by using thsi constructor: JDialog(Frame owner, String title, boolean modal)
Avatar of nesnemis
nesnemis

ASKER

Oh, all this work and it is that easy...

Thanks!
Thank you for accepting, glad problem is solved :)