Status of JOGL / Swing ...

Status of JOGL / Swing …

At one point in the not too distant past … I recall that JOGL was more friendly when it came to drawing in awt canvas than in the swing canvas counter part (forget the name).

What is the status of this ??? Does this sound at all familiar … and if so … what problems if any still exist ???

My SWING and AWT components are not playing so friendly together !

Don’t hold your breath waiting for AWT and Swing to be totally compatable. Try using GLJPanels with the OpenGL pipeline enabled at the commandline. -Dsun.java2d.opengl=true

I’m not waiting for or wanting compatibility between AWT and SWING in same app.

I wanting to move to using SWING entirely and drawing to a SWING based canvas.

I think we exchanged email. The solution for your particular problem was to call ToolTipManager.setLightWeightPopupEnabled(false).

There is some new functionality in Mustang (Java SE 6) described in this thread which speeds up the GLJPanel to be nearly as fast as the GLCanvas. However this is bleeding-edge functionality and given that Mustang hasn’t been officially released I wouldn’t recommend relying on it.

My suggestion would be to make your application work as well as you can using the GLCanvas and detect when you’re running on Mustang and with the Java2D OpenGL pipeline (-Dsun.java2d.opengl=true) and switch to using the GLJPanel in that case. This will unfortunately increase your testing matrix, though.