I am new to NetBeans and GUI development. I was wondering how I can design a main form that has menus that open up other forms. I know how to design a form with a button and an event listener (actionperformed), like so:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
new SeconfFrame().setVisible(true); // TODO add your handling code here:
}
This will call the second frame when button is pushed, but when I exit the second frame the first one goes away too. Not cool. How can I get the first frame (the main one) to still stay up?