From: Pepijn V. E. <pep...@lu...> - 2002-04-02 07:43:27
|
The windowClosing method in GLCanvas calls cvsDispose for some reason. In my application I only hide a JFrame instead of disposing it on close (BTW this is default behavior), but this makes the GLCanvas has dispose itself. Now when the JFrame in question is set visible again, the GLCanvas is gone. I commented the entire windowClosing implementation in GLCanvas out and it seems to work fine. Was there any reason this code was put there? It seems to me the GLCanvas will get the windowClosed event when a containing window is disposed, so doing dispose on windowClosing seems unnecessary. Pepijn Van Eeckhoudt |