Click to See Complete Forum and Search --> : why do we explicitly write code for closing Frame!!


Shyam Sunder L
May 9th, 2000, 07:31 AM
Hi All!!
Why we have to explicitly add WindowListener to Frame and implement windowClosing() to close the Frame by clicking the close button on top of the Frame (or normal Window X sign ).where as we do not implement windowMinimizing() , windowMaximizing().

Thanks
Shyam

kib63613
May 9th, 2000, 08:37 AM
The below words are my personal opion :
I guess that when a frame is closed, it does not means the application should be ternimated. It might
be the case that the frrame is just disposed, some other resource should be released, for example,
graphics context should be disposed. Although the frame is closed, the application or applet does still
work there.
Of course, we can ternimate the application when the frame is closed. This should depends on the real
situation.
good luck,
Alfred Wu