CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Frame Class - Catching Frame Being Closed?

    I am trying to use Microsoft Visual J++ (because I like the environment, no other reason, so no name-calling!), but it is old and uses JDK 1.0.2. So, it does not support Frame::addWindowListener(). Is there another way to trap when a frame is being closed?

    Please also see my other post called "Getting MS J++ To Use Later JDK"

    --
    Jason Teagle
    [email protected]

  2. #2
    Join Date
    Mar 1999
    Location
    Utah
    Posts
    66

    Re: Frame Class - Catching Frame Being Closed?

    I have Visual C++ & it should be under Tools->Options or Project->Settings. You will see a path that
    points to their JDK bin. Delete this and add a path to the bin folder of your new JDK.
    The other way to catch window closing would be to implement the WindowListener Interface but people don't
    usually do this because you have to define all 7 methods even if they do nothing.


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