1Jframe frame = new Jframe();
2int count = 0;
3if(count==10){
4 frame.setVisable(false);
5 frame.dispose();
6}
1setVisible(false); //you can't see me!
2dispose(); //Destroy the JFrame object
3
1To terminate/close a frame in AWT, use the 'dispose()' method
2
3"frameObject.dispose()"