JButton Close JFrame Java

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