简体   繁体   English

在OSX Mavericks停靠图标上更改java webstart悬停文本

[英]Changing java webstart hover text over OSX Mavericks dock icon

I have a java webstart, after starting it up and hovering over the java icon in the osx dock, "java" is displayed rather than my application name. 我有一个java webstart,在启动它并将鼠标悬停在osx dock中的java图标后,显示“java”而不是我的应用程序名称。

I am already doing this: 我已经这样做了:

System.setProperty("com.apple.mrj.application.apple.menu.about.name", "MyApplication");

and adding 并添加

-Xdock:name=MyApplication

to my vm args. 到我的vm args。 This was working fine before we upgraded to OSX Mavericks, thats when we started seeing "java". 在我们升级到OSX Mavericks之前,这工作正常,那时我们开始看到“java”。 Users who have not upgraded to mavericks yet still see the applicationName when they hover over in the dock. 尚未升级到小牛的用户在将它们悬停在扩展坞中时仍会看到applicationName。

I've searched but haven't found any suggestions other than the above 2. 我已经搜索过,但除了上述2之外没有找到任何建议。

This may be a dupe of 这可能是骗局

SWT on Mac OS X: Change dock program name Mac OS X上的SWT:更改停靠程序名称

and

How would I go about changing the hover text over icon in doc? 我如何在doc中更改悬停文本? (Java) (JAVA)

but haven't been able to resolve in Mavericks. 但是未能在小牛队解决。 Any suggestions? 有什么建议么?

You can set the CFBundleName in your application's Info.plist . 您可以在应用程序的Info.plist设置CFBundleName Some related links are cited here , and this complete example displays the name on OS X 10.9 using Java 7. 这里引用一些相关链接,这个完整的示例使用Java 7在OS X 10.9上显示名称。

<key>CFBundleName</key>
<string>RobotChase</string>

图片

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM