Game UI with JOGL

Hi,

a question I have is how do you create awt or swing components with a rendering loop in a GLCanvas? Is it simply a question of creating/setting the components in the init() of the GLCanvas and then set their visibility as needed? How does it fit with a rendering loop?

It’s possible to overlay AWT widgets on top of a GLCanvas if you first put it in a Container and then use one of the layout managers and absolute placement. However, I’m not sure I would steer you in this direction. You might be better off doing your GUI in pure OpenGL. I would recommend you check out FengGUI which probably has most widgets you would need to make a game GUI.

Cool! Thanks for the pointer on FengGUI!