moving GLPanel from one to other AWT container
Posted by Ondrej on Mar 23, 2011; 8:48pm
URL: https://forum.jogamp.org/moving-GLPanel-from-one-to-other-AWT-container-tp2722179.html
Is it good idea to remove GLPanel from one AWT container and add it other container? It would be useful in our application design but we could find alternative if you guys don't recommend it. I tried to add existing instance of GLPanel to other AWT container (JPanel) . First dispose and then init method (GLEventListener) were called. The GLAutoDrawable instance stays the same but getContext() method returns different instance. This must be the reason why all textures and probably all other resources allocated under the first context (before moving GLPanel) are lost.