Answers for "JFrame exiting on close only when pressing x"

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

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language