Generated Object

javafx.scene.control.ToolBar

Attributes

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

Content

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

If the content is a JavaFX node, then it will be added to the ToolBar's items. 

Usage

Used to create a ToolBar

Examples

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

sg.stage(
    title: "ToolBar Example",
    x: 100, y: 100, width: 400, height:400,
    visible: true,
    style: "decorated",
) {

    scene(fill: hsb(128, 0.5, 0.5, 0.5) ) {
        toolBar ( orientation: "vertical") {
            button(text: "button 1") 
            button(text: "button 2")
            button(text: "button 3")
            button(text: "button 4")
            button(text: "button 5")
            button(text: "button 6")
            button(text: "button 7")
            button(text: "button 8")
            button(text: "button 9")
            button(text: "button 10")
            
        }
    }
}

});