Click to See Complete Forum and Search --> : Frame Class - Catching Frame Being Closed?


Jason Teagle
March 6th, 2000, 02:44 PM
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"

Erik
March 6th, 2000, 07:54 PM
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.