Generated Object

javafx.scene.Group

Attributes

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

Content

May contain javafx Nodes.

Usage

Defines a container that children that are rendered in order whenever this node is rendered.

Examples

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

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

    sg.stage(
        title: "Group Example (Groovy)",
        width: 650, height:450,
        visible: true,
    ) {
         scene(fill: lightgreen ) {
             group() {
                 button(text: "ONE", layoutX: 10, layoutY: 300)
                 button(text: "TWO", layoutX: 110, layoutY: 300)
                 button(text: "THREE", layoutX: 210, layoutY: 300)
                 button(text: "FOUR", layoutX: 310, layoutY: 300)
             }
         }
    }
});