i'm at a standstill developing a java application. I have a series of JFrames that open each other, and once I open the next, the frame before shall close. Now, all works fine, I used
setVisible(false);
to "close" the frame, but I have some problems with a specific form I generated:
The form has some panels inside, and the panels each have a button which opens the next form. Now, I wonder how can I apply setVisible(false)
to the form that contains those panels.
ChooseForm is the name of the form that contains the panels; And I have this event handling the button click of each panel's button
private void btn_scegliMouseClicked(java.awt.event.MouseEvent evt) {
Database.getAbitazioneByCodice(label_codice.getText());
MainForm.showFrame();
}
Thanks in advance for the help.