Click to See Complete Forum and Search --> : Frame closing


Shyam Sunder L
April 27th, 2000, 11:41 PM
Hi!
Whenever I instantiate Frame, getting the Frame ,and am able to minimize or minimize it,but unable to close it,what is the reason?
I have to close it Ctrl+c!! in Dos mode.
Thanks,
Shyam

Shyam Sunder Reddy L,
India.

kib63613
April 28th, 2000, 04:37 AM
You need to implement WindowListener for closing your frame or exit your application.
You may put System.exit(0) in the method windowClosing(WindowEvent e) to terminate
your application if you want to exit your applicaiton. For the more detail relevant information,
you may reference http://www.geocities.com/kib63613/ . In the material area, there is one
article which mentioned something about Frame of AWT.
good luck,
Alfred Wu

santok
April 28th, 2000, 07:05 AM
Add a windowlistener to u'r frame use Windowadapter class and in
the method WindowClosing call System.exit(0);u will be on the console when u close u'rapplication.