Generated Object

javafx.scene.layout.TilePane

Attributes

This node accepts the attributes for a javafx.scene.layout.TilePane class. See the JavaDoc for javafx.scene.layout.TilePane.

Content

May contain javafx Nodes.

Usage

Defines a container that lays out its children in a grid of uniformly sized "tiles".

Examples

import groovyx.javafx.GroovyFX
import groovyx.javafx.SceneGraphBuilder

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

    sg.stage(
        title: "TilePane Example (Groovy)",
        width: 650, height:450,
        visible: true,
    ) {
         scene(fill: lightgreen ) {
             tilePane(hgap: 8, vgap: 8, prefColumns: 2) {
                 button(text: "ONE")
                 button(text: "TWO")
                 button(text: "THREE")
                 button(text: "FOUR")
             }
         }
    }
});