Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
import groovyx.javafx.GroovyFX
import javafx.scene.paint.Color;
import groovyx.javafx.SceneGraphBuilder
import javafx.scene.control.*;

GroovyFX.start({
    def sg = new SceneGraphBuilder();

    sg.stage(
        title: "GridPane Row Example (Groovy)",
        width: 650, height:450,
        visible: true,
    ) {
         scene(fill: lightgreen ) {
             gridPane(hgap: 4, vgap: 4, padding: [18,18,18,18], alignment: "center", gridLinesVisible: true) {
                   row(index: 40) {
                        label (text: "one")
                        label (text: "two")
                        label (text: "three")
                   }                   row(index: 1) {
                        label (text: "four")
                        label (text: "five")
                        label (text: "six")                        abel (text: "seven")
                   }
             }
         }
    }
});