Report question

Question: How do I make a thread wait for JFrame to close in Java?