Problems with FXML (fx:include + fx:id)
891324Sep 28 2011 — edited Sep 29 2011Hello, I've got a little problem with FXML. ;)
I have some .fxml file with <fx:include source="menu.fxml"/> and in my menu.fxml following:
<?import javafx.scene.layout.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.*?>
<?import javafx.scene.shape.*?>
<?import path.to.my.custom.class.*?>
<GridPane alignment="top_center">
<children>
<MyCustomClass alignment="top_center" GridPane.rowIndex="0"/>
<Label fx:id="showcase" text="%initMenuText" alignment="center" style="-fx-text-fill: #00ff00; -fx-font: BOLD 20 Tahoma" GridPane.rowIndex="1" minWidth="360"/>
</children>
</GridPane>
... and I get a heavy error because of the fx:id="showcase" in Label. Any suggestions?
Greets