AWT GLCanvas inside LayeredPane

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

AWT GLCanvas inside LayeredPane

jedwards1211
In my project I've been using an AWT GLCanvas inside a LayeredPane with autohiding drawers on all sides that show on top of the layered pane.

It worked on my old Windows laptop, but now that I got it working on my new MacBook, none of the drawers show on top of the GLCanvas.

Even on Windows, there would be artifacts left behind when the drawers animated closed, which seemed to only clear when I triggered an AWT doLayout of everything.

Does anyone know if there is a robust way to layer components on top of a GLCanvas?  Should I just abandon that approach and go with something else?
Reply | Threaded
Open this post in threaded view
|

Re: AWT GLCanvas inside LayeredPane

jedwards1211
Nevermind, I had not heard of GLJPanel.  It explicitly explains that it's designed to work in LayeredPanes and other similar cases.