Hi all,
=20
I have a canvas with a GLEventListener associated with it. This canvas
is inside a AWT.Panel, which is inside a AWT.Frame. I overrode the
default window listener with the following:
-------
app.addWindowListener(new WindowAdapter() {
public void windowClosed(WindowEvent e) {
}
public void windowClosing(WindowEvent e) {
ExitDialog exitDialog =3D new ExitDialog(app, "Are you
sure?");
}
});
--------
=20
where ExitDialog extends AWT.Dialog. The hope was the put the basic: Are
you sure? Yes No. Dialog for closing.=20
=20
The dialog works, hitting yes closes the application while no just
closes the dialog... however, as soon as I hit the 'X' button of the
Frame, I get:=20
gljDestroy failed (free) and the canvas no longer renders.
=20
Is canvas listening to the window closing event as well? How do I fix
this?
=20
Thank you,
Mark
=20
|