开发者

SWT on OS X: change application name

开发者 https://www.devze.com 2023-03-20 10:16 出处:网络
My SWT-based Java application shows SWT as application name in the application menu. I\'ve tried changing it in Info.plist and using Display.setAppName(\"myApp\") but it does not help. What else can I

My SWT-based Java application shows SWT as application name in the application menu. I've tried changing it in Info.plist and using Display.setAppName("myApp") but it does not help. What else can I try?

BTW, I'm 开发者_如何学运维starting the application using a shell script which is located at MyApp.app/Contents/MacOS/MyApp.


Display.setAppName() should work, at the condition that it is called before any Display instance is created (either by you or implicitly, e.g. if you call Display.getDefault()).


Haven't tested it, but this description should give an example...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号