本文介绍了无法在 Scene Builder 中添加魅力库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在场景构建器 Builder 8.2 中添加 gluonhq.charm 元素或使用charm-common-2.2.0.jar"库打开 gluon FXML(我也尝试过 8.1.1).

当我添加 jar 文件时,场景构建器的左侧部分没有添加任何内容.但是jar正确添加到Library文件夹中.

见下图

或者当我尝试打开一个胶子 FXLM 时,我有这个例外:

引起:java.lang.ClassNotFoundException:com.gluonhq.charm.glisten.mvc.View

你能帮我吗?

解决方案

如果你想要 Gluon 的 Charm 库,你需要 com.gluonhq:charm:2.2.0,而不是 charm-common.

使用 Scene Builder

单击Add JAR,您将看到可以添加到Scene Builder 中的自定义面板的所有组件.最后,点击Import Components.

I can not add gluonhq.charm elements or open gluon FXML with "charm-common-2.2.0.jar" library in my scene builder Builder 8.2 (I tried with 8.1.1 too).

When I add the jar file, nothing is added in the left section on scene builder.But the jar is correctly added in the Library folder.

See image below

Or when I try to open a gluon FXLM, I have this exception :

Caused by: java.lang.ClassNotFoundException: com.gluonhq.charm.glisten.mvc.View

Can you help me ?

解决方案

If you want Gluon's Charm library, you need com.gluonhq:charm:2.2.0, not charm-common.

With Scene Builder 8.2.0 it is easy to install.

You can follow the documentation here. Basically, you will need to select JAR/FXML Manager, click on Search repositories, type charm, and select com.gluonhq:charm.

Click Add JAR and you'll see all the components that can be added to the Custom Panel in Scene Builder. Finally, click on Import Components.

这篇关于无法在 Scene Builder 中添加魅力库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-30 09:47