By using frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE); can hide window. but how could i display another window after that ?
When i click on close button in my java swing application,i need to hide that window and display another window in my application. how could i do this?
You need to write a window listener.