import javafx.application.Application; import javafx.stage.Stage; import javafx.scene.Scene; import javafx.scene.layout.*; import javafx.scene.text.*; import javafx.scene.control.Label; public class GUI extends Application { @Override public void start(Stage stage) { Pane root = new VBox(); Text text = new Text("Hei!"); text.setFont(new Font(40)); root.getChildren().add(text); stage.setScene(new Scene(root, 200, 200)); stage.show(); } public static void main(String[] args) { launch(args); } }