Reply – Re: GLWindow in NewtCanvasAWT - deadlock in GLWindow.setSize
Your Name
Subject
Message
or Cancel
In Reply To
Re: GLWindow in NewtCanvasAWT - deadlock in GLWindow.setSize
— by gouessej gouessej
Don't set the size of the GLWindow, rather set the size of the top level container (JFrame).

Rather use com.jogamp.newt.event.WindowListener.windowResized(WindowEvent) or its AWT equivalent to listen to resize events.

Then, remove your loop (while(true)...) and use a simple animator.

After that, put into the listener a call to GLAutoDrawable.invoke(), use a GLRunnable that calls your native renderer.
Julien Gouesse | Personal blog | Website