javafx.scene.control.Slider
This node takes the attributes of the javafx.scene.control.Slider see javafx.scene.control.Slider.
If the content is a tooltip, the the Slider's tooltip will be set to the Tooltip.
Used to create a vertical or horizontal Slider
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()) {
slider(min: 0, max: 100, value: 50, orientation: "horizontal", showTickMarks: true, prefWidth: 200 )
}
}
});
|