how can i make my main class to wait for JFrame to return something

Printable View