Adding a component makes loosing reshape calls

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding a component makes loosing reshape calls

elect
I have JFrame that contains a JPanel that contains a JPanel where the newtCanvasAwt is added to.

I discovered that whenever I add a new component to the JPanel containing the newtCanvasAwt If I resize my JFrame, the reshape function will not be called anymore

Why?
Reply | Threaded
Open this post in threaded view
|

Re: Adding a component makes loosing reshape calls

elect
I found a temporary solution by removing the newtCanvasAwt, add the new component and when I am done, removing it and add again the newtCanvasAwt

The only drawback is that it takes a couple of seconds (5) from when I re-add the newtCanvasAwt until the display() and reshape() methods are called again

Btw, this project is using the old jogl 2.1, so it might be that.. I don't know
Reply | Threaded
Open this post in threaded view
|

Re: Adding a component makes loosing reshape calls

gouessej
Administrator
If you want to fill a bug report against JOGL, please use the very latest version.
Julien Gouesse | Personal blog | Website