Answers for "close jframe java"

6

how to close a jframe in java with an if statement

Jframe frame = new Jframe();
int count = 0;
if(count==10){
  frame.setVisable(false);
  frame.dispose();
}
Posted by: Guest on June-17-2020
2

java close jframe

setVisible(false); //you can't see me!
dispose(); //Destroy the JFrame object
Posted by: Guest on December-11-2020
1

terminate a frame java

To terminate/close a frame in AWT, use the 'dispose()' method

"frameObject.dispose()"
Posted by: Guest on August-20-2020
0

how to close a jframe in netbeans

JFrame1.dispose();  //Remove JFrame 1
      JFrame2.setVisible(true) //Show other frame
Posted by: Guest on May-31-2020
0

jbutton close jframe java

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

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language