in the button's actionPerformed() new MyOtherWindow();
where MyOtherWindow is the name of the class that you want to open/show
depending entirely on what you are trying to do, perhaps the original window, with a panel set as a CardLayout, might be a better option. It would go something like this CardLayout cl = new CardLayout(); //need to have access to this variable JPanel clPanel = new JPanel(cl);
add the original window to clPanel (instead of to the contentPane/frame) add the other window to clPanel
Click the button to show the other panel
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.