Sets the divider position for the indexed divider in a SplitPane.
index the index integer specifying which divider to set the position.
position the value of the position in a range of 0.0 to 1.0.
There is no content for this node.
Used to set the divider position for the indexed divider.
GroovyFX.start({
def sg = new SceneGraphBuilder(it);
sg.stage(
title: "SplitPane Example",
x: 100, y: 100, width: 400, height:400,
visible: true,
style: "decorated",
) {
scene(fill: hsb(128, 0.5, 0.5, 0.5) ) {
splitPane ( orientation: "horizontal") {
label(text: "This is Label 1\n\nAnd there were a few empty lines just there!") // left or top
label(text: "This is Label 2\n\nAnd there were a few empty lines just there!") // right or bottom
label(text: "This is Label 3\n\nAnd there were a few empty lines just there!")
dividerPosition(index: 0, position: 0.25)
dividerPosition(index: 1, position: 0.50)
dividerPosition(index: 2, position: 1.0)
}
}
}
});
|