JTable font + GLCanvas

Hi -

I’m encountering a strange problem when running my code on Macs with Java6.0 and JSR 1.1.1.

I have a JTable in a docked frame (via JIDE Docking Manager) that controls a main GLCanvas. The JTable font isn’t being rendered correctly (normally looks like bold typeface but with the GLCanvas it is very thin looking and almost unreadable). When I move the JTable docked frame outside to a standalone frame, the font renders correctly.

I did some testing:

  1. did not add the GLCanvas the main JPanel, the JTable font renders fine
  2. add the GLCanvas to the JPanel but make the init() and display() methods empty, the JTable font renders incorrectly.

So I’m thinking somehow an OpenGL state is affecting the JTable font rendering? Can someone verify the JTable fonts use OpenGL texturing? Is there any other possible causes for this bug?

Thanks

Some additional information:

  1. I believe the problem is that anti-aliasing is being disabled when rendering the font in the JTable. I enabled
    Java2D to use Quartz (-Dapple.awt.graphics.UseQuartz=true) and the font renders correctly, although this creates some artifacts for some customized JComponents (the opaque property doesn’t seem to work correctly). So I’m still trying to get things working with the default (OpenGL?) Java2D pipeline.
  2. I tried a bunch of combinations of the following flags to enable/disable anti-aliasing but they didn’t seem to have any effect: -Dawt.useSystemAAFontSettings=true -Dsun.java2d.opengl.fboject=false -Dsun.java2d.opengl=True -Dsun.java2d.ddraw=false
  3. Any other hints as why the AA is disabled with Swing/JOGL interoperability?

Thanks