SWT Popup Menus in Linux using NewtCanvasSWT

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

SWT Popup Menus in Linux using NewtCanvasSWT

ulmangt
I'm attempting to use org.eclipse.swt.widgets.Menu as a popup menu over a com.jogamp.newt.swt.NewtCanvasSWT in an Eclipse RCP application.

When running with Red Hat Enterprise Linux 6.5 (64 bit), the menus simply do not appear (but the same code works fine under Windows).

It looks like this issue has been mentioned before a few times:
http://forum.jogamp.org/Render-problems-for-custom-context-menu-in-OpenGL-SWT-td2255271.html#a2255766
http://forum.jogamp.org/NewtCanvasSWT-vs-swt-GLCanvas-td4029929.html

But neither post really seems to directly address the issue or propose a solution.

The issue occurs in both JOGL 2.1.5 and 2.2.0.

Has anyone else encountered this issue with SWT / Eclipse RCP / JOGL / Linux / and popup menus?

Thanks in advance for any help,

Geoff
Reply | Threaded
Open this post in threaded view
|

Re: SWT Popup Menus in Linux using NewtCanvasSWT

gouessej
Administrator
Hi

Please check whether a bug report doesn't already exist and create a new one if necessary. Do you have the same problem with the SWT GLCanvas?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: SWT Popup Menus in Linux using NewtCanvasSWT

ulmangt
I couldn't find a similar bug report, so I created a new one as you suggested: https://jogamp.org/bugzilla/show_bug.cgi?id=1051

The bug report references two simple runnable examples which I put together to demonstrate the potential problem:

NewtSwtPopupExample.java demonstrates the inability to create a SWT Menu over top of a NewtCanvasSWT.

SwtPopupExample.java demonstrates the same functionality working with a SWT GLCanvas (as you suggested, I tried it with the SWT GLCanvas and it does indeed work in this case).

Please let me know if I can provide any additional information or assistance.

Thanks again,

Geoff
Reply | Threaded
Open this post in threaded view
|

Re: SWT Popup Menus in Linux using NewtCanvasSWT

gouessej
Administrator
Just indicate which JVM you use, please try with OpenJDK as Oracle Java isn't guaranteed to work on all distros without breaking anything.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: SWT Popup Menus in Linux using NewtCanvasSWT

ulmangt
I added the additional information (and some other information about linux kernel version, SWT version, GTK version, etc...) to the bug report.

Tested with OpenJDK and I still encounter the issue with my setup (now described in better detail in the bug report).

Sounds like Petros tried to reproduce the issue and could only do so with an extremely old version of JOGL (500 commits before HEAD).

However I'm experiencing the issue with the 2.2.0 release version, which looks like it's currently identical to the latest revision of master.