Using frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
can hide the window. but how could I display another window after that?
When I click the close button
in a java swing application, I need to hide this window and display another window in my application. How can i do this?
source share