commit 4f67182a374af701eac1528ce30cefd96889fb5f Author: JuanManuelGutiérrezM Date: Wed Mar 20 08:09:08 2024 -0600 Primera versión del proyecto diff --git a/PresentadorFX/nbactions.xml b/PresentadorFX/nbactions.xml new file mode 100644 index 0000000..a0cb38e --- /dev/null +++ b/PresentadorFX/nbactions.xml @@ -0,0 +1,40 @@ + + + + run + + jar + + + clean + javafx:run + + + + debug + + clean + javafx:run@ide-debug + + + true + + + + profile + + clean + javafx:run@ide-profile + + + + CUSTOM-jlink + jlink + + clean + + compile + javafx:jlink + + + diff --git a/PresentadorFX/pom.xml b/PresentadorFX/pom.xml new file mode 100644 index 0000000..f003413 --- /dev/null +++ b/PresentadorFX/pom.xml @@ -0,0 +1,78 @@ + + 4.0.0 + uvct + PresentadorFX + 1.0-SNAPSHOT + + 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.4 + + uvct.presentadorfx.App + + + + + + default-cli + + + + + debug + + + + + + + + + ide-debug + + + + + + + + + ide-profile + + + + + + + + + + + + + + + diff --git a/PresentadorFX/src/main/java/module-info.java b/PresentadorFX/src/main/java/module-info.java new file mode 100644 index 0000000..530ccad --- /dev/null +++ b/PresentadorFX/src/main/java/module-info.java @@ -0,0 +1,4 @@ +module uvct.presentadorfx { + requires javafx.controls; + exports uvct.presentadorfx; +} diff --git a/PresentadorFX/src/main/java/uvct/presentadorfx/App.java b/PresentadorFX/src/main/java/uvct/presentadorfx/App.java new file mode 100644 index 0000000..3e08e29 --- /dev/null +++ b/PresentadorFX/src/main/java/uvct/presentadorfx/App.java @@ -0,0 +1,30 @@ +package uvct.presentadorfx; + +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/PresentadorFX/src/main/java/uvct/presentadorfx/SystemInfo.java b/PresentadorFX/src/main/java/uvct/presentadorfx/SystemInfo.java new file mode 100644 index 0000000..9de34d5 --- /dev/null +++ b/PresentadorFX/src/main/java/uvct/presentadorfx/SystemInfo.java @@ -0,0 +1,13 @@ +package uvct.presentadorfx; + +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