GLCanvas with Swing goes at wrong place on reshape (mac osx)

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

GLCanvas with Swing goes at wrong place on reshape (mac osx)

Mathieu Blossier
Hi,

I'm using GLCanvas in a swing application, showing this canvas and other JPanels using JSplitPane. Sometimes, when I resize the GLCanvas by moving the divider, it is shown at a wrong place, which seems to me the center of the app window. This happens especially when the GLCanvas is resized to a small width.

This happens only on mac osx, not in windows. Also using GLJPanel instead doesn't lead to this issue.

Thanks for your help,
Mathieu
Reply | Threaded
Open this post in threaded view
|

Re: GLCanvas with Swing goes at wrong place on reshape (mac osx)

gouessej
Administrator
There is an open bug report about this problem, probably n°1277.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: GLCanvas with Swing goes at wrong place on reshape (mac osx)

Mathieu Blossier
Hi,

Yes, it seems same kind of bug as https://jogamp.org/bugzilla/show_bug.cgi?id=1277

Thanks,
Mathieu
Reply | Threaded
Open this post in threaded view
|

Re: GLCanvas with Swing goes at wrong place on reshape (mac osx)

Paul2017
This post was updated on .
In reply to this post by gouessej
Hi,

I just tried the patch mentioned at the bottom of https://jogamp.org/bugzilla/show_bug.cgi?id=1277 and it does seem to fix the issue with resizing GLCanvas on the Mac.

Is this going to be fixed in 2.3.3 do you think?

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: GLCanvas with Swing goes at wrong place on reshape (mac osx)

gouessej
Administrator
Hi

For me, it's a workaround rather than a real fix. It's better than nothing. I would like another contributor to review this code.
Julien Gouesse | Personal blog | Website