Can something be done as to click on the button a new frame or window can be opened.... pls some one get the solution???
posted 11 years ago
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