Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
GroovyFX.start({
    def sg = new SceneGraphBuilder();
    sg.stage(
        title: "Stage Frame",
        x: 100, y: 100, width: 400, height:400,
        visible: true,
        style: "decorated",
        onHidden: { println "Close"}
    ) {
        
        scene(fill: hsb(128, 0.5, 0.5, 0.5), parent: group(), stylesheets: ["file://another.css"]) {
            button (
                        //      layoutX: 25,
                        //      layoutY: 300,
                        font: "16pt Courier",
                        text: "This is a Button",
                        onAction: { println "button pressed"}
            )
       )      }
    }
});