JavaFx JFoenix Java9 [英] JavaFx JFoenix Java9

查看:915
本文介绍了JavaFx JFoenix Java9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此我将Java从8更新为9,并且我确实知道Jfoenix为Java 9提供了单独的Jar文件。
然而在下载Jar文件然后尝试像之前那样导入到Scene构建器之前,没有显示,当我尝试导入时,没有自定义控制器出现。
有谁能告诉我发生了什么?

so I updated my Java from 8 to 9, and I do realize that Jfoenix has separate Jar file for Java 9. However after download the Jar file then trying to import to Scene builder like I did before, nothing shows up, None of the custom controller shows up when I trying to import. Can anyone tell me what is going on ?

推荐答案

首先,请确保您使用的是Gluon Scene Builder 9.0.1,可以从这里

First, make sure you are using Gluon Scene Builder 9.0.1, that can be downloaded from here.

安装完成后,转到Jar / FXML Manager选项:

Once installed, go to the Jar/FXML Manager option:

选择搜索存储库

输入 JFoenix 。选择第一个选项:

Type JFoenix. Select the first option:

点击添加Jar 。将使用最新的依赖项。在这种情况下, com.jfoenix:jfoenix:9.0.1

Click Add Jar. The latest dependency will be used. In this case, com.jfoenix:jfoenix:9.0.1.

你会发现所有的控件来自图书馆:

You will find all the controls from the library:

最后点击导入组件。您可以通过从自定义窗格拖动控件来开始使用它们。

Finally click Import Components. You can start using them by dragging the controls from the Custom pane.

请注意,您也可以手动选择其他依赖项版本,单击手动添加库管理器中的库选项,并根据组和工件选择所需的版本。

Note that you can also select manually other dependency versions, clicking the Manually add Library from repository option from the Library Manager, and selecting the desired version based on the group and artifact.

这篇关于JavaFx JFoenix Java9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆