| Java Web Start and Cocoa Display.getSystemMenu - Shell not shown [message #898774]
||Fri, 27 July 2012 14:07
| Albert Pikus
Registered: October 2009
I encountered the following problem: when using Display.getSystemMenu() (introduced with 3.7) on Mac through Java Web Start, application Shell is not shown.
Please take a look at the following snippet: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet354.java
When this snippet is started from Eclipse, Shell is correctly displayed and everything works as expected, but if JAR is created and deployed through Java Web Start, application's shell is not displayed at all on Mac, while all menu items are in place and are receiving mouse events.
When the above snippet is packaged inside JAR and deployed via JWS and run on Windows, Shell is correctly displayed.
I think it's a great improvement that SWT is now capable of displaying Application menu on Mac (I was using CocoaUIEnhancer until 3.7), but unfortunately deployment using JWS doesn't seem to be an option.
I can reproduce this with Oracle Java 1.6.0_33, SWT 4.2 and Mac OS X 10.7.4 (Lion).
Is this a SWT or Java Web Start issue?
Any suggestions/possible solutions are welcome.
[Updated on: Wed, 01 August 2012 08:54]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01606 seconds