SWT on OS X: change application name

左心房为你撑大大i 提交于 2019-12-23 16:56:08

问题


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.


回答1:


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()).




回答2:


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



来源:https://stackoverflow.com/questions/6690704/swt-on-os-x-change-application-name

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!