From: Sven G. <sgo...@ja...> - 2002-04-25 04:45:34
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 02 April 2002 09:43, Pepijn Van Eeckhoudt wrote: > 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. > Hiding a JFrame should not send the windowClosing message ! (AFAIK) So today (CVS), we use this event only if we are a toplevel window ! shall we redesign this ? cheers, sven > Pepijn Van Eeckhoudt - -- health & wealth mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440 ; fax : +49-521-2399442 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8x4nJHdOA30NoFAARAoqNAJ4zMZVuWalfA3axjJQSqNnU8waZPgCfbPBZ m9eyf7fq+XbVAgDLaONk7zU= =M5Na -----END PGP SIGNATURE----- |