Original Post
I am unable to layer swing menus, objects, over my JOGL canvas. I came up with a sort of intermediate solution that is called by any event listener that handles a non-openGL call. Basically it replaces the openGL canvas with a jPanel with a picture of the openGL canvas, and despite the stupidity it works pretty well except for a slight flicker as the picture will contain the previous image before it was updated for a second before updating. My question is this: Is there a better way to handle this? if not, is there a way to get into the rendering function to get Java to paint the image onto the Panel BEFORE it shows it to prevent the flicker? I've tried various permuations of paintComponent, etc, but I can't seem to find where I can modify the paint order in order to get this to work.