I'm trying to open a GUI and then wait until the JFrame is closed. I heard about JDialog but I don't know how to use it with my actual code:
GUI gui = new GUI();
gui.show(); // Creates some JButtons, JLabels, and show the JFrame.
Now I would like to wait until the JFrame is closed, but I don't know how to continue.
Can you help me please?