From df0fabee6f1609122d2bee89186628a3053c3b4a Mon Sep 17 00:00:00 2001 From: Sage The DM Date: Tue, 22 Oct 2024 09:56:16 +0200 Subject: [PATCH] Copied the teacher --- .../src/main/java/com/example/App.java | 16 ++++++---------- .../target/classes/com/example/App.class | Bin 1723 -> 1117 bytes 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Code/ost/_01_hello_world/src/main/java/com/example/App.java b/Code/ost/_01_hello_world/src/main/java/com/example/App.java index f7f7cfc..7d6820f 100644 --- a/Code/ost/_01_hello_world/src/main/java/com/example/App.java +++ b/Code/ost/_01_hello_world/src/main/java/com/example/App.java @@ -3,26 +3,22 @@ package com.example; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Label; -import javafx.scene.layout.StackPane; +import javafx.scene.text.Font; 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(); + Label label = new Label("Hello World"); + label.setFont(new Font(40)); + + Scene scene = new Scene(label); - var label = new Label("Hello, JavaFX " + javafxVersion + ", running on Java " + javaVersion + "."); - var scene = new Scene(new StackPane(label), 640, 480); stage.setScene(scene); + stage.setTitle("Welcome to JavaFX!"); stage.show(); } - public static void main(String[] args) { launch(); } diff --git a/Code/ost/_01_hello_world/target/classes/com/example/App.class b/Code/ost/_01_hello_world/target/classes/com/example/App.class index 7559e7ff2cedaa0a9abc15626d8fcc34fed4bd61..2aeee85c51f994782c31db4502fe07288bbce36e 100644 GIT binary patch delta 575 zcmZXR-A)rx6otRjX_;Xd43?IbRG=jS{nMc;_yZy$RzlR6Xuw`haA+`NCzgr9E8f6_ z%)Rg6O>1oM0q_}o72`f>jESC$eSY@ZYps3uVEm_LU;O&^9k@;N%sw|vF2}B#IklKn zjP3YA5El2tZt%utf~-S|DMhyY^sV>7a|5r_c3(!_qfUFRvS*T4OzFhoiFDNTU_gg`vd%O!0*(Jh7Q)L9;9> z^8X-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