Scene

The Scene object is the slate on which all graphical components are drawn or rendered.

Some if the most commonly used Scene variable include:

fill The background color of the scene.
width The width of the scene. (See Setting window size)
height The height of the scene. (See Setting window size)
content A JavaFX sequence containing the nodes which are to be rendered in the scene.

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.text.Text;
import javafx.scene.shape.Circle;
 
Stage {
    title: "My JavaFX App"
 
    scene: Scene {
        fill: Color.GOLD
        width: 300
        height: 200
        content: [
            Text {
                x:50  y: 100
                content:"How about that?"
            }
            Circle {
                centerX: 200  centerY: 100
                radius: 25
            }
        ]
    }
}