summaryrefslogtreecommitdiff
path: root/Java-Kompendium/kap16/1/src/main/java/App.java
blob: 1c84a33da58e7cafb677ef9eec4a8b835d183253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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();
    }
}