prototipo en javaFX

This commit is contained in:
03jossellin-herrera-rodriguez 2024-03-14 10:31:01 -06:00
parent 38efacbce9
commit a0e947173e
1 changed files with 30 additions and 0 deletions

View File

@ -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();
}
}