diff options
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(); + } +} |
