Has anyone managed to use Swing components within a 3D app? What I want to do is use lightweight components from Swing rendered into a BufferedImage and then painted into the OpenGL frame buffer - either as an overlay or as a surface image map.
I’ve had some success in getting the components painted and forwarding the key/mouse events through to them. But the problem I’m running up against is that the lightweight components seem to require a heavyweight component as a root ancestor. If I use a heavyweight component such as a JFrame then I end up with extra frames on my desktop which keep popping back up when they get focus.
I’m sure it should be possible and it would be a major win for Swing over other widget toolkits which hook directly into the local OS’s desktop.
Any suggestions? TIA.