GLContext gc_main; GLContext gc_background; JCGLImplementationJOGLType i = JCGLImplementationJOGL.getInstance(); JCGLContextType c_main = i.newContextFrom(gc_main, "main"); JCGLContextType c_back = i.newContextFrom(gc_background, "background-resources");