CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2000
    Location
    AP,India
    Posts
    3

    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



  2. #2
    Join Date
    Dec 1999
    Location
    Chonghe, Taipei County, Taiwan, R.O.C.
    Posts
    231

    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
  •  





Click Here to Expand Forum to Full Width

Featured