From b6d4f305faa12ee361a695290d08c68818721ed6 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 20 Oct 2026 16:02:35 +0200 Subject: init --- src/main/java/com/example/App.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main/java/com/example/App.java (limited to 'src/main/java/com') 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(); + } +} -- cgit v1.2.3