JButton Close Jframe Java

private void btnButtonActionPerformed(java.awt.event.ActionEvent evt) {                                               
	this.dispose();
}
Codin' Joss