Java Code:

public class SceneExample extends Application { public void start(Stage primaryStage) { primaryStage.setTitle("Scene Example"); FlowPane rootNode = new FlowPane(); Label label = new Label("my label"); rootNode.getChildren().add(label); Scene scene = new Scene(rootNode); primaryStage.setScene(scene); primaryStage.show(); } }