im studying programing at university, 2nd year now, and im getting started with java fxml scene builder. i know the basics and how to connect the code with the @FXML thing and so on. but im with a big problem. so, i basically create my window, some combo boxes etc, but the code java scene builder generetes comes with errores and i can't compile. I'll show you the code:
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.collections.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane id="AnchorPane" prefHeight="582.0" prefWidth="804.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2" fx:controller="lab001.InterFaceGraficaController">
<children>
<Label fx:id="label" layoutX="126.0" layoutY="120.0" minHeight="16.0" minWidth="69.0" />
<Label layoutX="64.0" layoutY="363.0" text="Label" />
<Label layoutX="64.0" layoutY="199.0" text="Label" />
<Label layoutX="64.0" layoutY="412.0" text="Label" />
<Label layoutX="47.0" layoutY="59.0" text="Label" />
<Button id="a" layoutX="115.0" layoutY="508.0" mnemonicParsing="false" onAction="#adicionar" text="add" />
<Button layoutX="229.0" layoutY="510.0" mnemonicParsing="false" onAction="#limpar" text="limpar" />
<ComboBox fx:id="combo" layoutX="111.0" layoutY="410.0">
<items>
<FXCollections fx:factory="observableArrayList">
<String fx:value="Item 1" />
<String fx:value="Item 2" />
<String fx:value="Item 3" />
</FXCollections>
</items>
</ComboBox>
<TextArea fx:id="txtA" layoutX="121.0" layoutY="114.0" prefWidth="200.0" wrapText="true" />
<Slider fx:id="sl" blockIncrement="1.0" layoutX="121.0" layoutY="365.0" majorTickUnit="2.0" max="10.0" min="1.0" minorTickCount="1" showTickLabels="true" showTickMarks="true" snapToTicks="true" value="0.0" />
<ListView fx:id="filmes" layoutX="539.0" layoutY="152.0" prefHeight="200.0" prefWidth="200.0" />
<TextField fx:id="txt" layoutX="100.0" layoutY="56.0" prefWidth="200.0" />
</children>
</AnchorPane>
and i get errors like : JavaFX.scene.layout.anchorpane does not support property controller.
is this some jdk related error ? because this is pure auto-generated code, i haven't touched it.