在javafx中使用fontawosomefx图标时加载感知

时间:2018-10-26 09:15:01

标签: java javafx-8 font-awesome fxml glyphicons

“:20”属性的期望值“:20 javafx.fxml.LoadException

Caused by: java.lang.NullPointerException
    at de.jensd.fx.glyphs.GlyphIcon.convert(GlyphIcon.java:228)
    at de.jensd.fx.glyphs.GlyphIcon.setSize(GlyphIcon.java:139)
    ... 24 more
Oct 26, 2018 2:39:07 PM com.sun.javafx.css.parser.CSSParser term
WARNING: CSS Error parsing ': 20: Unexpected token 'EOF' at [-1,-1]
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException: Children: child node is null: parent = AnchorPane

这种观念有时……但并非总是如此。

<JFXButton fx:id="calanderPrevDays" buttonType="RAISED" onMouseClicked="#loadPrevDays" prefHeight="48.0" prefWidth="120.0" ripplerFill="#7f0404" style="-fx-background-color: #003069;" text="Prev 7 Days" textFill="WHITE">
               <graphic>
                  <FontAwesomeIconView fill="WHITE" glyphName="BACKWARD" size="20" />
               </graphic>
               <cursor>
                  <Cursor fx:constant="HAND" />
               </cursor>
            </JFXButton>

这是引发异常的fxml代码行

0 个答案:

没有答案