how to close a jframe after a button is clickedin java code example
Example: jbutton close jframe java
private void btnButtonActionPerformed(java.awt.event.ActionEvent evt) {
this.dispose();
}
private void btnButtonActionPerformed(java.awt.event.ActionEvent evt) {
this.dispose();
}