javafx.scene.layout.FlowPane
This node accepts the attributes for a javafx.scene.layout.FlowPane class. See the JavaDoc for javafx.scene.layout.FlowPane.
May contain javafx Nodes.
Defines a container that lays out its children in a flow that wraps at the flowPane's boundary.
import groovyx.javafx.GroovyFX
import groovyx.javafx.SceneGraphBuilder
GroovyFX.start({
def sg = new SceneGraphBuilder();
sg.stage(
title: "FlowPane Example (Groovy)",
width: 650, height:450,
visible: true,
) {
scene(fill: lightgreen ) {
flowPane(hgap: 10, alignment: "center" ) {
button(text: "ONE")
button(text: "TWO")
button(text: "THREE")
button(text: "FOUR") }
}
}
});
|