From 5929ee490ce02c7dfd8c196c3c0f5a359ae0493b Mon Sep 17 00:00:00 2001 From: esoe Date: Wed, 31 Aug 2022 10:51:18 +0300 Subject: [PATCH] org.openjfx: javafx-archetype-simple --- pom.xml | 46 +++++++++++++++++++++++ src/main/java/module-info.java | 4 ++ src/main/java/ru/egspt/App.java | 30 +++++++++++++++ src/main/java/ru/egspt/SystemInfo.java | 13 +++++++ target/classes/module-info.class | Bin 0 -> 194 bytes target/classes/ru/egspt/App.class | Bin 0 -> 1411 bytes target/classes/ru/egspt/SystemInfo.class | Bin 0 -> 555 bytes 7 files changed, 93 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/module-info.java create mode 100644 src/main/java/ru/egspt/App.java create mode 100644 src/main/java/ru/egspt/SystemInfo.java create mode 100644 target/classes/module-info.class create mode 100644 target/classes/ru/egspt/App.class create mode 100644 target/classes/ru/egspt/SystemInfo.class diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..199b7fc --- /dev/null +++ b/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + ru.egspt + moodle-services + 0.1 + + UTF-8 + 11 + 11 + + + + org.openjfx + javafx-controls + 13 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.0 + + 11 + + + + org.openjfx + javafx-maven-plugin + 0.0.6 + + + + + default-cli + + ru.egspt.App + + + + + + + diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 0000000..428ccaa --- /dev/null +++ b/src/main/java/module-info.java @@ -0,0 +1,4 @@ +module ru.egspt { + requires javafx.controls; + exports ru.egspt; +} diff --git a/src/main/java/ru/egspt/App.java b/src/main/java/ru/egspt/App.java new file mode 100644 index 0000000..516c5b6 --- /dev/null +++ b/src/main/java/ru/egspt/App.java @@ -0,0 +1,30 @@ +package ru.egspt; + +import javafx.application.Application; +import javafx.scene.Scene; +import javafx.scene.control.Label; +import javafx.scene.layout.StackPane; +import javafx.stage.Stage; + + +/** + * JavaFX App + */ +public class App extends Application { + + @Override + public void start(Stage stage) { + var javaVersion = SystemInfo.javaVersion(); + var javafxVersion = SystemInfo.javafxVersion(); + + var label = new Label("Hello, JavaFX " + javafxVersion + ", running on Java " + javaVersion + "."); + var scene = new Scene(new StackPane(label), 640, 480); + stage.setScene(scene); + stage.show(); + } + + public static void main(String[] args) { + launch(); + } + +} \ No newline at end of file diff --git a/src/main/java/ru/egspt/SystemInfo.java b/src/main/java/ru/egspt/SystemInfo.java new file mode 100644 index 0000000..a93cda2 --- /dev/null +++ b/src/main/java/ru/egspt/SystemInfo.java @@ -0,0 +1,13 @@ +package ru.egspt; + +public class SystemInfo { + + public static String javaVersion() { + return System.getProperty("java.version"); + } + + public static String javafxVersion() { + return System.getProperty("javafx.version"); + } + +} \ No newline at end of file diff --git a/target/classes/module-info.class b/target/classes/module-info.class new file mode 100644 index 0000000000000000000000000000000000000000..6c5a6a690f8790bdb5f9896b027ad7fd291b64d0 GIT binary patch literal 194 zcmYk0Jr2S!427Qq^cN^nIRQIi8x6_o}hEn@7s7&rijLL_FvgFpNEJ<0FS z^95jwc?dyBulm$CYF)RLCL{;ln^NuSMiCZ&CwVFE1tHk8J4Z-}OfS{h-ntwyA@hdn yAxqtMMmIJ`N{GEEkA+oB%s8>(!~l@{;a379HwcU|aaHc z=tikznFYf$9b24T`V5g-(>A?1hS11pjzL;-_PL4>nl*$GVQ5R6HqTU!_PD!a>{*;4 znsy3?l`~vZ{MR-m@6aqW+(-uzq!_|w&u~44o{@A732hX)o)tDVnp4q%P8m^#&a2Gq zaoOWXYxaSoA%-r77Ll6cZkf82T=o z7r4#!f@6EGW9eyQk6SVZ2%b0(7F?{D);@O?4AD@l+_IcRe4S!ecH=7g5f|(XGjvtQ z3TFC4_2Z6)ySPXE67$^NXPEe3=(Ry=eNze^5YvgcTd{4LFYefW`?!Kp29^{U#x*3w zxQgdgNl?*?xD1^V8^+Cwp=CT|7;MqEmL zmT15-_xu?eWaL-!w|&N6;H8EYp;)PW=zOj!uSjx@T>-8aCSgXeQ7_bL2}LjrT;=#( z8ua3eT5JbP2fz@3Bf}(}cGtN2M;tP?8QKNQ!2=ZxSq(ebB*|Dt#V#CDA;T@wqw1`3 z9tuE@PKufsra~eA3PR-36DBLuzfLQoH9U3-Z+Z4M-Oz0THI$qORhH}%`AWoXe->i)`MXR7d g30+|83~%a4RH_3EP-cIC9))`3XrJL7*(U7%1sT>u3;+NC literal 0 HcmV?d00001 diff --git a/target/classes/ru/egspt/SystemInfo.class b/target/classes/ru/egspt/SystemInfo.class new file mode 100644 index 0000000000000000000000000000000000000000..b96428d46deec4c9ebcb0582dcd70c98f4574713 GIT binary patch literal 555 zcmZutO;5r=5Pic}p_C8#@Y{nI0v_nm1ICMqiAkd-814m^x&&IXU5NZEJ!w4n1N>3O z-4;b-FEcxD-Ko_#Z% zu#qI>&bZIzIU(Kd3<#Nv;GUUCqhKM69HHWHpIt9zLniLr;gk_-PB3z(16OceufdFb z;31*uBv|(dMQuD_BIJQjXtX=dW|F=X-1mBUY!NICcb75IL>)~7jX!h88(G-Kj%w>M zc`JfB6LLjpwf}cbFd~$+%lL6UPagY(atwW26U=_F5F>WU^~#ma9lM%{W2l3vi$g`y zhf>i{m8~+VoIQC#{#iXzFjdswnp#xRiU}&0R8>G36@_SVEBaCFTJ;sRCx!f0=OT3~ T((EQ^_7XJakA`p%^*j6mpOJEV literal 0 HcmV?d00001