How to freeze and thaw a jframe? [closed]

0

I am learning to program with the java language and I am already using the JFrame and I would like to know how to click on a button to put another JFrame in front and not let me return to the First Jframe until I press the button of the second JFrame

    
asked by Steven Camargo 31.08.2017 в 21:38
source

1 answer

1

You can use a JDialog instead of a JFrame .

and you call it in the following way

MiJDialog midialog = new MiJDialog(**this**,true)
midialog .setVisible(true);

With this you guarantee that the JFrame can not be used until the Dialog is not closed

    
answered by 31.08.2017 в 22:52