Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problems with FXML (fx:include + fx:id)

891324Sep 28 2011 — edited Sep 29 2011
Hello, 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
This post has been answered by 885691 on Sep 28 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 27 2011
Added on Sep 28 2011
5 comments
3,954 views