Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Generated Object

javafx.scene.control.TextField

Attributes

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

Content

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

Usage

Used to create a text area that support a single line of text.

Examples

Code Block
GroovyFX.start({
    def sg = new SceneGraphBuilder();
    sg.stage(
        title: "Stage Frame",
        x: 100, y: 100, width: 400, height:400,
        visible: true
    ) {
        
        scene(fill: hsb(128, 0.5, 0.5, 0.5), parent: group()) {
            text = textField(prefColumnCount:80)
        }
    }
});