Generated Object

javafx.scene.control.TextBox

Attributes

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

Content

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

Usage

Used to create a text box 

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()) {
            tf = textBox(prefWidth: 200, action: { println tf.text} )
        }
    }
});