Jak zamknąć JFrame w NetBeans
JFrame1.dispose(); //Remove JFrame 1
JFrame2.setVisible(true) //Show other frame
Upset Unicorn
JFrame1.dispose(); //Remove JFrame 1
JFrame2.setVisible(true) //Show other frame