Generated Object

javafx.scene.control.ScrollPane

Attributes

This node takes the attributes of the javafx.scene.control.ScrollPane see javafx.scene.control.ScrollPane.

Content

If the content is a tooltip, the the ScrollPane's tooltip will be set to the Tooltip.

If the content is a JavaFX node, then the ScrollPane's node attribute will be set to this node.

Usage

Used to create a Scroll Pane

Examples

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()) {
            scrollPane( prefWidth: 200, prefHeight: 400) {
                 rectangle(width: 600, height: 600, fill: "linear (0%,0%) to (100%,100%) stops (0.0,red) (1.0,black)")
            }
        }
    }
});