简体   繁体   English

JavaFX Mac菜单名称

[英]JavaFX Mac Menu Name

I've been using JarWrapper to make a Mac OS X application bundle that contains a bundled JRE. 我一直在使用JarWrapper制作一个包含捆绑JRE的Mac OS X应用程序包。 When I run the application, the menubar name is correct, however the menu items within contain the class name (see screenshot below): 当我运行应用程序时,菜单栏名称是正确的,但其中的菜单项包含类名称(请参见下面的屏幕截图): 在此输入图像描述

I am using -Xdock:name="VisUAL" as a VM argument, and having looked elsewhere, this alone should be enough to fix the menu item names. 我使用-Xdock:name="VisUAL"作为VM参数,并且在其他地方看过,仅此一项就足以修复菜单项名称。

The JRE bundled is 1.8.0_45. 捆绑的JRE是1.8.0_45。 I am running Mac OS X 10.10. 我正在运行Mac OS X 10.10。

Has anyone else faced this issue? 还有其他人遇到过这个问题吗? If so, how have you resolved it? 如果是这样,你是如何解决的? Thanks! 谢谢!

We have the same problem with our application. 我们的应用程序存在同样的问题。 The solution we are using for now is to move the class file to the base folder. 我们现在使用的解决方案是将类文件移动到基​​本文件夹。 So not inside a package. 所以不要在包里面。

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

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