Report question

Question: How to close a jframe without closing the main program