From ce89e9ca375ccf2a9e8fae5ad2d307c2253a49fe Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 24 Mar 2023 14:56:34 +1100 Subject: [PATCH] Viewer: Added favicon --- src/comp1110/ass2/gui/Viewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp1110/ass2/gui/Viewer.java b/src/comp1110/ass2/gui/Viewer.java index af8c7f9..e76a607 100644 --- a/src/comp1110/ass2/gui/Viewer.java +++ b/src/comp1110/ass2/gui/Viewer.java @@ -231,7 +231,7 @@ public class Viewer extends Application { root.getChildren().add(controls); makeControls(); - + primaryStage.getIcons().add(new javafx.scene.image.Image(Viewer.class.getResourceAsStream("favicon.png"))); primaryStage.setScene(scene); primaryStage.show(); }