Note that there are some explanatory texts on larger screens.

plurals
  1. POCreate gridPane in Javafx
    primarykey
    data
    text
    <p>I'm new in JavaFx, i have two gridPane created in FXMl, i want to do the same thing but in Javafx.</p> <p>I want to create class that extends GridPane, so when i call my class i will have the same result that i have in fxml PS:if you are using sceneBuiler, check Grid Lines visible so you can see all GridPane thank you</p> <pre><code> &lt;GridPane layoutX="138.0" layoutY="72.0"&gt; &lt;children&gt; &lt;Label text="01" GridPane.columnIndex="1" GridPane.rowIndex="0" /&gt; &lt;Label text="01" GridPane.columnIndex="2" GridPane.rowIndex="0" /&gt; &lt;Label text="01" GridPane.columnIndex="3" GridPane.rowIndex="0" /&gt; &lt;Label text="01" GridPane.columnIndex="4" GridPane.rowIndex="0" /&gt; &lt;Label text="01" GridPane.columnIndex="0" GridPane.rowIndex="0" /&gt; &lt;/children&gt; &lt;columnConstraints&gt; &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="25.0" /&gt; &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="25.0" /&gt; &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="25.0" /&gt; &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="25.0" /&gt; &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="25.0" /&gt; &lt;/columnConstraints&gt; &lt;rowConstraints&gt; &lt;RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /&gt; &lt;/rowConstraints&gt; &lt;/GridPane&gt; &lt;GridPane layoutX="38.0" layoutY="102.0"&gt; &lt;children&gt; &lt;Label prefWidth="74.0" text="Label" GridPane.columnIndex="0" GridPane.rowIndex="0" /&gt; &lt;/children&gt; &lt;columnConstraints&gt; &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /&gt; &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="25.0" /&gt; &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="25.0" /&gt; &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="25.0" /&gt; &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="25.0" /&gt; &lt;ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="25.0" /&gt; &lt;/columnConstraints&gt; &lt;rowConstraints&gt; &lt;RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /&gt; &lt;RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /&gt; &lt;/rowConstraints&gt; &lt;/GridPane&gt; </code></pre>
    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