Note that there are some explanatory texts on larger screens.

plurals
  1. POjava FXML generated code
    primarykey
    data
    text
    <p>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:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;?import java.lang.*?&gt; &lt;?import java.util.*?&gt; &lt;?import javafx.collections.*?&gt; &lt;?import javafx.scene.*?&gt; &lt;?import javafx.scene.control.*?&gt; &lt;?import javafx.scene.layout.*?&gt; &lt;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"&gt; &lt;children&gt; &lt;Label fx:id="label" layoutX="126.0" layoutY="120.0" minHeight="16.0" minWidth="69.0" /&gt; &lt;Label layoutX="64.0" layoutY="363.0" text="Label" /&gt; &lt;Label layoutX="64.0" layoutY="199.0" text="Label" /&gt; &lt;Label layoutX="64.0" layoutY="412.0" text="Label" /&gt; &lt;Label layoutX="47.0" layoutY="59.0" text="Label" /&gt; &lt;Button id="a" layoutX="115.0" layoutY="508.0" mnemonicParsing="false" onAction="#adicionar" text="add" /&gt; &lt;Button layoutX="229.0" layoutY="510.0" mnemonicParsing="false" onAction="#limpar" text="limpar" /&gt; &lt;ComboBox fx:id="combo" layoutX="111.0" layoutY="410.0"&gt; &lt;items&gt; &lt;FXCollections fx:factory="observableArrayList"&gt; &lt;String fx:value="Item 1" /&gt; &lt;String fx:value="Item 2" /&gt; &lt;String fx:value="Item 3" /&gt; &lt;/FXCollections&gt; &lt;/items&gt; &lt;/ComboBox&gt; &lt;TextArea fx:id="txtA" layoutX="121.0" layoutY="114.0" prefWidth="200.0" wrapText="true" /&gt; &lt;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" /&gt; &lt;ListView fx:id="filmes" layoutX="539.0" layoutY="152.0" prefHeight="200.0" prefWidth="200.0" /&gt; &lt;TextField fx:id="txt" layoutX="100.0" layoutY="56.0" prefWidth="200.0" /&gt; &lt;/children&gt; &lt;/AnchorPane&gt; </code></pre> <p>and i get errors like : JavaFX.scene.layout.anchorpane does not support property controller.</p> <p>is this some jdk related error ? because this is pure auto-generated code, i haven't touched it.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload