IntelliJ无法解析FXML标签

时间:2016-10-28 15:51:33

标签: java xml intellij-idea fxml

我的JavaFX项目中的IntelliJ尚未解析标记font<?xml version="1.0" encoding="UTF-8"?> <?import javafx.geometry.*?> <?import javafx.scene.text.*?> <?import java.lang.*?> <?import javafx.scene.control.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.text.Font?> <fx:root maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="760.0" prefWidth="880.0" type="BorderPane" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="testerl.Controller"> <top> <VBox alignment="TOP_CENTER" prefHeight="99.0" prefWidth="900.0" BorderPane.alignment="CENTER"> <children> <MenuBar> <menus> <Menu mnemonicParsing="false" text="File"> <items> <MenuItem mnemonicParsing="false" text="Close" /> </items> </Menu> <Menu mnemonicParsing="false" text="Edit"> <items> <MenuItem mnemonicParsing="false" text="Delete" /> </items> </Menu> <Menu mnemonicParsing="false" text="Help"> <items> <MenuItem mnemonicParsing="false" text="About" /> </items> </Menu> </menus> </MenuBar> <ToolBar prefHeight="67.0" prefWidth="900.0"> <items> <Button mnemonicParsing="false" prefHeight="46.0" prefWidth="67.0" text="Record" textFill="RED" /> <Button mnemonicParsing="false" prefHeight="46.0" prefWidth="106.0" text="New Module" textFill="#0cc305" /> </items> </ToolBar> </children> </VBox> </top> <center> <TextArea prefHeight="449.0" prefWidth="900.0" text="- c(module.erl)." wrapText="true" BorderPane.alignment="CENTER"> <font> <Font name="System Bold" size="20.0" /> </font> <BorderPane.margin> <Insets /> </BorderPane.margin> <padding> <Insets top="10.0" /> </padding></TextArea> </center> <bottom> <TextArea opacity="0.5" prefHeight="66.0" prefWidth="900.0" promptText="TestErl Log:" BorderPane.alignment="CENTER" /> </bottom> <left> <ListView prefHeight="595.0" prefWidth="35.0" BorderPane.alignment="CENTER" /> </left> </fx:root> 。其他一切都很好。 另外,这些是FX-Scene-builder生成的标签;所以我真的不明白为什么会出现问题。 我也有所有必要的进口货物。

这是我的fxml文件:

0  0  0  0  0  12 13 0 
0  0  6  0  0  0  0  3 
0  6  0  4  0  0  0  5
0  0  4  0  10 0  0  7
0  0  0  10 0  11 8  9
12 0  0  0  11 0  1  0 
13 0  0  0  8  1  0  2
0  3  5  7  9  0  2  0

0 个答案:

没有答案