From: Virgil W. <vir...@ra...> - 2000-08-31 01:12:33
|
> Dear Virgil, > > the classes GLCanvas (and therefor GLAnimCanvas) in the package > gl4java.awt, > adds itself as a mouselistener, to repaint if: > mouseClicked > ... > > So, if you use GLCanvas or (especially) GLAnimCanvas, > just overwrite mouseClicked with a no operation implementation, > or whatever you want to do. > > I made this as an easy solution for the incomplete window refresh, > if an "own window" is used and it is shown again after hidden by another > window. Yep, that did the trick. Guess I've been out of touch for too long. Looking at the 2.3.1.1 source I still have I see that the GLCanvas used to not add itself as a mouselistener. I was calling sDisplay myself so I had not bothered overriding update. So, every mouse click was calling repaint, which caused an eventual update, etc. Overriding mouseClicked (and update and paint for completeness) got rid of the flash. Thanks Sven and A11W, Virgil > > Yours, Sven > -- > mailto:sgo...@ja... > www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ > voice : +49-521-2399440, +49-170-2115963; fax: +49-521-2399442 > |