import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class App extends Application { @Override public void start(Stage stage) { var label = new Label("Willkommen zu unserem fensterbasierten Programm!"); var scene = new Scene(new StackPane(label), 500, 300); stage.setTitle("Fenster 1"); stage.setScene(scene); stage.show(); } public static void main(String[] args) { launch(); } }