Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Generated Object

javafx.scene.layout.StackPane

Attributes

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

Content

May contain javafx Nodes.

Usage

Defines a container that lays out its children in a back-to-front stack.

Examples

Code Block
import groovyx.javafx.GroovyFX
import groovyx.javafx.SceneGraphBuilder

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

    sg.stage(
        title: "StackPane Example (Groovy)",
        width: 650, height:450,
        visible: true,
    ) {
         scene(fill: lightgreen ) {
             stackPane() {
                 button(text: "ONE")
                 button(text: "TWO")
                 button(text: "THREE")
                 button(text: "FOUR")             }
         }
    }
});