Answers for "how to exit a jframe with button"

1

jframe exit on close

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Posted by: Guest on January-30-2021
0

jbutton close jframe java

private void btnButtonActionPerformed(java.awt.event.ActionEvent evt) {                                               
	this.dispose();
}
Posted by: Guest on March-08-2020

Browse Popular Code Answers by Language