To close a frame, call the dispose method on a reference to that frame. This will both hide the window and reclaim all resources - the frame can be shown again with a call to setVisible or similar, which will recreate the frame and its components.
Alternatively (Not recommended unless...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.