I'm using NetBeans.
My JFrame
has as default close operation: EXIT_ON_CLOSE
.
I have a button that is supposed to close the program on this JFrame
, this is the action performed code:
private void bSalirActionPerformed(java.awt.event.ActionEvent evt){
this.dispose();
}
I thought this would close all the JFrame
s of the program but it doesn't, could you explain me why or how to fix it?