Cómo cerrar un Jframe en Java con una declaración IF
Jframe frame = new Jframe();
int count = 0;
if(count==10){
frame.setVisable(false);
frame.dispose();
}
Vast Vulture
Jframe frame = new Jframe();
int count = 0;
if(count==10){
frame.setVisable(false);
frame.dispose();
}
To terminate/close a frame in AWT, use the 'dispose()' method
"frameObject.dispose()"