From a417374d813f766cea055213de809c4feb152d95 Mon Sep 17 00:00:00 2001 From: sageTheDM Date: Sun, 12 Jan 2025 22:21:00 +0100 Subject: [PATCH] Help me lord --- .../src/main/java/com/example/App.java | 5 +++-- .../target/classes/com/example/App.class | Bin 2316 -> 2439 bytes 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/App.java b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/App.java index 3eb8916..6e132cf 100644 --- a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/App.java +++ b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/src/main/java/com/example/App.java @@ -7,6 +7,7 @@ import javafx.scene.Scene; import javafx.stage.Stage; import java.io.IOException; +import java.util.Objects; /** * JavaFX App @@ -21,7 +22,8 @@ public class App extends Application { scene = new Scene(loadFXML("shop")); // Apply the CSS stylesheet - scene.getStylesheets().add(getClass().getResource("styles.css").toExternalForm()); + String cssPath = Objects.requireNonNull(getClass().getResource("styles.css")).toExternalForm(); + scene.getStylesheets().add(cssPath); // Set the stage properties stage.setScene(scene); @@ -42,5 +44,4 @@ public class App extends Application { public static void main(String[] args) { launch(); } - } diff --git a/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/App.class b/Code/ost/JAVA-FX-PROJECT/_javafx_website_task/target/classes/com/example/App.class index 9817c5c7cce2f55aeed9694fc2f11c520d6ca684..e8fc1c883bede0fed41df98032e194887b8371e7 100644 GIT binary patch delta 911 zcmZ9J+iw(g6vscmo$1Ut3>3G4rjTw|+HQBdw2NE{rJyLbE4q|k1Z+iRC_`ykwy-nh z=B0pK=yVm6qHJTi1?m1ytDDcmr+Tn@tCsW5cO z(_^z)(YVsGzwC#hM=u3En%J@ZZMNBLRlFHj%ttfjWvJ9_XNO`T zvLch!B`ejwBt2lWQ{lzUl^`k{9xJ)@(eJUF0sSzMbzRo6*W(@D)jz9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