Versions Compared

Key

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

Generated Object

javafx.stage.Stage

Value Argument

[Describe the value argument accepted by the node. If no value argument is accepted either state it or remove this section]

Attributes

This node accepts the attributes for a javafx.stage.Stage class. See the JavaDoc for javafx.stage.Stage

In addition:

primary - boolean value to indicate whether or not to create a new stage (false) or to use the primary stage (true) created for JavaFX. 

Content

Content contains a Scene 

Usage

Creates a JavaFX window.

Examples

Code Block
import groovyx.javafx.GroovyFX
import groovyx.javafx.SceneGraphBuilder

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

    sg.stage(
        title: "Stage Example (Groovy)",
        width: 650, height:450,
        visible: true,
    )
});