aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui-desktop
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ui-desktop')
-rw-r--r--modules/ui-desktop/.classpath16
-rw-r--r--modules/ui-desktop/src/main/java/market/guess/ui/desktop/App.java25
2 files changed, 38 insertions, 3 deletions
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 @@
15 <!-- Defines the standard Java System Library --> 15 <!-- Defines the standard Java System Library -->
16 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 16 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
17 <!-- Defines where compiled .class files go --> 17 <!-- Defines where compiled .class files go -->
18 <classpathentry kind="output" path="bin"/> 18 <classpathentry kind="output" path="bin"/>
19
20 <!-- Required OpenJFX JARs explicitly placed on the Modulepath -->
21 <classpathentry kind="lib" path="/usr/share/openjfx/lib/javafx.base.jar">
22 <attributes><attribute name="module" value="true"/></attributes>
23 </classpathentry>
24 <classpathentry kind="lib" path="/usr/share/openjfx/lib/javafx.controls.jar">
25 <attributes><attribute name="module" value="true"/></attributes>
26 </classpathentry>
27 <classpathentry kind="lib" path="/usr/share/openjfx/lib/javafx.graphics.jar">
28 <attributes><attribute name="module" value="true"/></attributes>
29 </classpathentry>
30 <classpathentry kind="lib" path="/usr/share/openjfx/lib/javafx.fxml.jar">
31 <attributes><attribute name="module" value="true"/></attributes>
32 </classpathentry>
19</classpath> 33</classpath>
20 34
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 @@
1package market.guess.ui.desktop; 1package market.guess.ui.desktop;
2 2
3public class App { 3import javafx.application.Application;
4 public static void main(String[] args) {} 4import javafx.scene.Scene;
5import javafx.scene.control.Label;
6import javafx.scene.layout.StackPane;
7import javafx.stage.Stage;
8
9public 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}