Re: NEWT Window disappear instantly at initialization
Posted by
Sven Gothel on
Jun 06, 2011; 11:26pm
URL: https://forum.jogamp.org/NEWT-Window-disappear-instantly-at-initialization-tp3032415p3032486.html
On Tuesday, June 07, 2011 01:02:03 AM amalsek [via jogamp] wrote:
> However ..
> *
http://forum.jogamp.org/file/n3032415/OpenGLManager.java> OpenGLManager.java : the file where all the opengl is happening
if you just call 'initialize()' on your instance of your class from main,
and do nothing else, this is the expected behavior.
JVM spec says, the JVM exists if main exist and no other non_daemon
thread is running, which would be the case here.
No animation thread ?
You may like to add and start an Animator ..
Animator animator = new Animator(window);
animator.start();
... wait for some EOL criteria ..
animator.stop();
window.destroy();
pls check the many unit tests we provide, within the jogl source tree.
~Sven