diff options
| author | alex <[email protected]> | 2026-10-20 16:02:35 +0200 |
|---|---|---|
| committer | alex <[email protected]> | 2026-10-20 16:02:35 +0200 |
| commit | b6d4f305faa12ee361a695290d08c68818721ed6 (patch) | |
| tree | 4900f68f3af2a604a9bd89b8de40912a50246912 /src/main/java/com/example/App.java | |
| download | javafx-uloha-b6d4f305faa12ee361a695290d08c68818721ed6.tar.xz javafx-uloha-b6d4f305faa12ee361a695290d08c68818721ed6.zip | |
init
Diffstat (limited to 'src/main/java/com/example/App.java')
| -rw-r--r-- | src/main/java/com/example/App.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main/java/com/example/App.java b/src/main/java/com/example/App.java new file mode 100644 index 0000000..0290f7b --- /dev/null +++ b/src/main/java/com/example/App.java @@ -0,0 +1,26 @@ +package com.example; + +import javafx.application.Application; +import javafx.geometry.Insets; +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("Hello JavaFX from Nix Flakes"); + var root = new StackPane(label); + root.setPadding(new Insets(24)); + + var scene = new Scene(root, 640, 360); + stage.setTitle("JavaFX Projekt"); + stage.setScene(scene); + stage.show(); + } + + public static void main(String[] args) { + launch(); + } +} |
