diff options
| author | Kostya <mail@sartin.in> | 2026-08-09 07:57:20 +0000 |
|---|---|---|
| committer | Kostya <mail@sartin.in> | 2026-08-09 07:57:20 +0000 |
| commit | 18a9b6e4f3c9f7e034a0c174a5e2cd6c043ee169 (patch) | |
| tree | 9fd60c048a7181ee0c9f85e194a452d9e8a831e8 /modules/ui-desktop/src/main/java/market/guess | |
| parent | 10e36a8910653a73910b7be654b3467ece511d9b (diff) | |
| download | guess-market-18a9b6e4f3c9f7e034a0c174a5e2cd6c043ee169.tar.gz guess-market-18a9b6e4f3c9f7e034a0c174a5e2cd6c043ee169.tar.xz guess-market-18a9b6e4f3c9f7e034a0c174a5e2cd6c043ee169.zip | |
consolidate modules, add more infra
Diffstat (limited to 'modules/ui-desktop/src/main/java/market/guess')
| -rw-r--r-- | modules/ui-desktop/src/main/java/market/guess/ui/desktop/App.java | 25 |
1 files changed, 23 insertions, 2 deletions
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 @@ | |||
| 1 | package market.guess.ui.desktop; | 1 | package market.guess.ui.desktop; |
| 2 | 2 | ||
| 3 | public class App { | 3 | import javafx.application.Application; |
| 4 | public static void main(String[] args) {} | 4 | import javafx.scene.Scene; |
| 5 | import javafx.scene.control.Label; | ||
| 6 | import javafx.scene.layout.StackPane; | ||
| 7 | import javafx.stage.Stage; | ||
| 8 | |||
| 9 | public class App extends Application { | ||
| 10 | public static void main(String[] args) { | ||
| 11 | launch(); | ||
| 12 | } | ||
| 13 | |||
| 14 | @Override | ||
| 15 | public void start(Stage stage) throws Exception { | ||
| 16 | var javaVersion = System.getProperty("java.version"); | ||
| 17 | var openjfxVersion = System.getProperty("javafx.version"); | ||
| 18 | |||
| 19 | var label = | ||
| 20 | new Label("Hello. JavaFX " + openjfxVersion + ", running on Java " + javaVersion + "."); | ||
| 21 | var scene = new Scene(new StackPane(label), 640, 480); | ||
| 22 | |||
| 23 | stage.setScene(scene); | ||
| 24 | stage.show(); | ||
| 25 | } | ||
| 5 | } | 26 | } |