【发布时间】:2016-08-06 01:17:12
【问题描述】:
我正在使用 Eclipse 在 Linux 中编写 JavaFX 应用程序,并使用 SceneBuilder 编写了一定的 FXML 代码。 当我移至 Windows 时,如果我尝试执行代码,它运行良好,但如果我尝试修改 fxml 文件,它开始给我一个错误(与修改无关)。我也尝试过使用 NetBeans,但没有任何改变。
错误是:
javafx.fxml.LoadException: Light.Distant is not a valid type.
而给出错误的代码是:
<Circle fx:id="check_credit" centerX="195.0" fill="#0d6615" layoutX="8.0" layoutY="150.0" radius="8.0" stroke="TRANSPARENT" strokeLineCap="ROUND" strokeType="INSIDE">
<effect>
<Lighting bumpInput="$null">
<light>
<Light.Distant />
</light>
</Lighting>
</effect>
</Circle>
可能是什么原因? 提前谢谢你。
【问题讨论】: