From 75e59a78704480805c0e7f4b35fdbd7115807ccb Mon Sep 17 00:00:00 2001 From: Brendan Robert Date: Sun, 3 May 2015 02:18:29 -0500 Subject: [PATCH] Application title and icon are now correct (except for Mac, which needs extra packaging to set the icon correctly) --- src/main/java/jace/JaceApplication.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/jace/JaceApplication.java b/src/main/java/jace/JaceApplication.java index 137e09b..faa38a0 100644 --- a/src/main/java/jace/JaceApplication.java +++ b/src/main/java/jace/JaceApplication.java @@ -5,11 +5,13 @@ */ package jace; +import jace.core.Utility; import java.io.IOException; import javafx.application.Application; import javafx.application.Platform; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; +import javafx.scene.image.Image; import javafx.scene.layout.AnchorPane; import javafx.stage.Stage; @@ -35,6 +37,8 @@ public class JaceApplication extends Application { controller.initialize(); Scene s = new Scene(node); primaryStage.setScene(s); + primaryStage.setTitle("Jace"); + primaryStage.getIcons().add(Utility.loadIcon("woz_figure.gif")); } catch (IOException exception) { throw new RuntimeException(exception); }