From ae1a19f162cafd3e9b40fbea05d0855b0e41b8c4 Mon Sep 17 00:00:00 2001 From: 03jossellin-herrera-rodriguez Date: Wed, 20 Mar 2024 07:33:27 -0600 Subject: [PATCH] Commit graficasBarras --- presentador/nbactions.xml | 40 ++++++++++ presentador/pom.xml | 78 +++++++++++++++++++ .../java/com/mycompany/presentador/App.java | 30 +++++++ .../com/mycompany/presentador/SystemInfo.java | 13 ++++ presentador/src/main/java/module-info.java | 4 + 5 files changed, 165 insertions(+) create mode 100644 presentador/nbactions.xml create mode 100644 presentador/pom.xml create mode 100644 presentador/src/main/java/com/mycompany/presentador/App.java create mode 100644 presentador/src/main/java/com/mycompany/presentador/SystemInfo.java create mode 100644 presentador/src/main/java/module-info.java diff --git a/presentador/nbactions.xml b/presentador/nbactions.xml new file mode 100644 index 0000000..a0cb38e --- /dev/null +++ b/presentador/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/presentador/pom.xml b/presentador/pom.xml new file mode 100644 index 0000000..5e25f04 --- /dev/null +++ b/presentador/pom.xml @@ -0,0 +1,78 @@ + + 4.0.0 + com.mycompany + presentador + 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 + + com.mycompany.presentador.App + + + + + + default-cli + + + + + debug + + + + + + + + + ide-debug + + + + + + + + + ide-profile + + + + + + + + + + + + + + + diff --git a/presentador/src/main/java/com/mycompany/presentador/App.java b/presentador/src/main/java/com/mycompany/presentador/App.java new file mode 100644 index 0000000..4233276 --- /dev/null +++ b/presentador/src/main/java/com/mycompany/presentador/App.java @@ -0,0 +1,30 @@ +package com.mycompany.presentador; + +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/presentador/src/main/java/com/mycompany/presentador/SystemInfo.java b/presentador/src/main/java/com/mycompany/presentador/SystemInfo.java new file mode 100644 index 0000000..715594d --- /dev/null +++ b/presentador/src/main/java/com/mycompany/presentador/SystemInfo.java @@ -0,0 +1,13 @@ +package com.mycompany.presentador; + +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/presentador/src/main/java/module-info.java b/presentador/src/main/java/module-info.java new file mode 100644 index 0000000..19f8aaa --- /dev/null +++ b/presentador/src/main/java/module-info.java @@ -0,0 +1,4 @@ +module com.mycompany.presentador { + requires javafx.controls; + exports com.mycompany.presentador; +}