How to run openGL on a canvas?

Started by kitfox, October 24, 2018, 21:17:12

Previous topic - Next topic

kitfox

I would like to write an editor using Swing that will be broken into several panels.  In some of these panels I would like to run OpenGL threads with 3D animations.  I'm finding the GLFW framework confusing and am unable to locate any docs that describe how I would do this.

Is there some sort of GL canvas that would let me run an openGL animation in a single panel?  I'd like to be able to have multiple GL panels open at the same time and be able to mix them with other Swing components.

mudlee

I can't answer your question, but isn't swing dying already? I thought JavaFX took the place when we build UI with Java.