Unable to initialize JAWT

It works, but i can’t use it in a JFrame !

Why?

The GLCanvas is invisible in a JFrame : the background is gray…
But it works perfectly in a Frame (AWT) : the background is black.

Heavyweight (OpenGL) components don’t mix very nicely with lightweight (Swing) components.

Cas :slight_smile:

Rather use GLJPanel with Swing components but it is slower on some hardwares.

ok :confused:

I can’t use GLCanvas directly in a JFrame,
but i can use it in a JTabbedPane (in a JFrame)

This used to work fine (GLCanvas in a JFrame) but stopped working recently (a month or two back), giving the blank white/grey display.

My app’s been coded this way for a couple of years, and broke because of this. It’s been discussed in a couple of other threads. I don’t believe if we ever determined if it was due to a change in the base JDK, JOGl, or what. I never did find a fix - resorting to a GLJPanel in a JFrame is slow and caused other issues for my app.

e.g. see: http://www.java-gaming.org/index.php/topic,21296.msg174606.html#msg174606

I got this down to a simple testcase, but with the current state of JOGL I’m not aware if there’s anyone who wants to look into it.

Rob

can you try my “fix” ?
GLCanvas in a JTabbedPane in a JFrame

Maybe submit a bug report on project kenai. I don’t see any bug tracker on github.

hi,
have you validated that the native libraries are getting loaded?
john