@Override
                    public void uncaughtException(Thread thread, Throwable thrown) {
                        listener.handleError("Uncaught exception thrown in " + thread.toString(), thrown);
                        if (needClose.get()) {
                            // listener.handleError() has requested the
                            // context to close. Satisfy request.
                            deinitInThread();
                        }
                    }
Does LWJGL display initialization in the OpenGL thread
jme3-vr/src/main/java/com/jme3/system/lwjgl/LwjglWindowVR.java