From a0e947173edabcce2177a6eb786131ed28d88b28 Mon Sep 17 00:00:00 2001 From: 03jossellin-herrera-rodriguez Date: Thu, 14 Mar 2024 10:31:01 -0600 Subject: [PATCH] prototipo en javaFX --- .../com/mycompany/presentadorjfx/App.java | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 PresentadorJFX/src/main/java/com/mycompany/presentadorjfx/App.java diff --git a/PresentadorJFX/src/main/java/com/mycompany/presentadorjfx/App.java b/PresentadorJFX/src/main/java/com/mycompany/presentadorjfx/App.java new file mode 100644 index 0000000..1d764b6 --- /dev/null +++ b/PresentadorJFX/src/main/java/com/mycompany/presentadorjfx/App.java @@ -0,0 +1,30 @@ +package com.mycompany.presentadorjfx; + +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