|
-
May 9th, 2000, 07:31 AM
#1
why do we explicitly write code for closing Frame!!
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
-
May 9th, 2000, 08:37 AM
#2
Re: why do we explicitly write code for closing Frame!!
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|