How to close a JFrame when opening a new one?

Printable View