简体   繁体   English

如何在Netbeans中打开JavaFX项目?

[英]How do I open JavaFX projects in Netbeans?

Set up your JavaFX project in NetBeans IDE as follows. 如下所示在NetBeans IDE中设置JavaFX项目。

  1. From the File menu, choose New Project. 在文件菜单上,选择新建项目。
  2. In the JavaFX application category, choose JavaFX Application. 在“ JavaFX应用程序”类别中,选择“ JavaFX应用程序”。 Click Next. 点击下一步。

Why can't I the see JavaFX application category? 为什么看不到JavaFX应用程序类别? How can i fix it? 我该如何解决? My Netbeans version is 7.1. 我的Netbeans版本是7.1。

Go to Tools -> Plugins -> Available Plugins. 转到工具->插件->可用插件。 Press "Reload Catalog" and search for the "JavaFX 2 Support". 按“重新加载目录”,然后搜索“ JavaFX 2支持”。 Install it and restart Netbeans. 安装它并重新启动Netbeans。

It should work now. 现在应该可以工作了。

In my case, 就我而言

JavaFX Plugins are deactivated, I activated them by this way. JavaFX插件已停用,我通过这种方式激活了它们。

Tools -> Plugins -> Installed (Tab) -> Select JavaFX plugins and click on Activate them. 工具->插件->已安装(Tab)->选择JavaFX插件,然后单击激活它们。

JavaFX has been enabled in my NetBeans. 我的NetBeans中已启用JavaFX。

Refer to the documentation on using NetBeans JavaFX support and configuring a NetBeans JavaFX platform. 请参阅有关使用NetBeans JavaFX支持和配置NetBeans JavaFX平台的文档 Additionally, make sure you have installed JavaFX . 此外,请确保已安装JavaFX Try with the latest NetBeans nightly build , as the NetBeans 7.1 build does have some bugs in it's JavaFX support. 尝试使用最新的NetBeans夜间构建 ,因为NetBeans 7.1构建的JavaFX支持确实存在一些错误。 If it still doesn't work, file an issue with NetBeans 如果仍然无法使用,请向NetBeans 提出问题

JavaFX support for Macintosh and Linux is only in early access form at the moment and would be unlikely to work out the box in NetBeans 7.1, but perhaps could be made to work if you extracted the Macintosh or Linux JavaFX early access builds and followed the NetBeans JavaFX platform setup documentation. Macintosh和Linux的JavaFX的支持仅在早期访问形式的时刻,也不太可能在NetBeans 7.1开箱,但也许可以作出,如果你提取的Macintosh或Linux的JavaFX的早期访问建立并遵循的NetBeans工作JavaFX平台设置文档。

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

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