I'm currently running into an issue with a GLCanvas disposing itself when the window close event is fired. While this is normally desired behaviour I want to ask the user for confirmation first. If the user wants to cancel the closing of the application it should keep running like nothing ever happened, this however is not the case. The canvas is disposed and I'm left with a empty area where my opengl stuff used to be.
1) JFrame with a GLCanvas
2) Set default close operation to none like so:
3) trigger a close event
4) GLCanvas is gone, application remains
Have I missed some setting? Is this a case of JOGL trying to do too much for the developer?