From 18a9b6e4f3c9f7e034a0c174a5e2cd6c043ee169 Mon Sep 17 00:00:00 2001 From: Kostya Date: Sun, 9 Aug 2026 07:57:20 +0000 Subject: consolidate modules, add more infra --- modules/ui-desktop/.classpath | 16 +++++++++++++- .../src/main/java/market/guess/ui/desktop/App.java | 25 ++++++++++++++++++++-- 2 files changed, 38 insertions(+), 3 deletions(-) (limited to 'modules/ui-desktop') diff --git a/modules/ui-desktop/.classpath b/modules/ui-desktop/.classpath index 7f8bc25..7d4bc5c 100644 --- a/modules/ui-desktop/.classpath +++ b/modules/ui-desktop/.classpath @@ -15,6 +15,20 @@ - + + + + + + + + + + + + + + + diff --git a/modules/ui-desktop/src/main/java/market/guess/ui/desktop/App.java b/modules/ui-desktop/src/main/java/market/guess/ui/desktop/App.java index 70a7e7d..698cdd7 100644 --- a/modules/ui-desktop/src/main/java/market/guess/ui/desktop/App.java +++ b/modules/ui-desktop/src/main/java/market/guess/ui/desktop/App.java @@ -1,5 +1,26 @@ package market.guess.ui.desktop; -public class App { - public static void main(String[] args) {} +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 { + public static void main(String[] args) { + launch(); + } + + @Override + public void start(Stage stage) throws Exception { + var javaVersion = System.getProperty("java.version"); + var openjfxVersion = System.getProperty("javafx.version"); + + var label = + new Label("Hello. JavaFX " + openjfxVersion + ", running on Java " + javaVersion + "."); + var scene = new Scene(new StackPane(label), 640, 480); + + stage.setScene(scene); + stage.show(); + } } -- cgit v1.2.3