javafx.scene.layout.VBox
This node accepts the attributes for a javafx.scene.layout.VBox class. See the JavaDoc for javafx.scene.layout.VBox.
May contain javafx Nodes.
Defines a container that lays out its children vertically.
import groovyx.javafx.GroovyFX
import groovyx.javafx.SceneGraphBuilder
GroovyFX.start({
def sg = new SceneGraphBuilder();
sg.stage(
title: "HBox Example (Groovy)",
width: 650, height:450,
visible: true,
) {
scene(fill: lightgreen ) {
vbox(spacing: 10 ) {
button(text: "ONE")
button(text: "TWO")
button(text: "THREE")
button(text: "FOUR") }
}
}
});
|