Application title and icon are now correct (except for Mac, which needs extra packaging to set the icon correctly)

This commit is contained in:
Brendan Robert 2015-05-03 02:18:29 -05:00
parent 67e1d9e1f1
commit 75e59a7870

View File

@ -5,11 +5,13 @@
*/ */
package jace; package jace;
import jace.core.Utility;
import java.io.IOException; import java.io.IOException;
import javafx.application.Application; import javafx.application.Application;
import javafx.application.Platform; import javafx.application.Platform;
import javafx.fxml.FXMLLoader; import javafx.fxml.FXMLLoader;
import javafx.scene.Scene; import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.layout.AnchorPane; import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage; import javafx.stage.Stage;
@ -35,6 +37,8 @@ public class JaceApplication extends Application {
controller.initialize(); controller.initialize();
Scene s = new Scene(node); Scene s = new Scene(node);
primaryStage.setScene(s); primaryStage.setScene(s);
primaryStage.setTitle("Jace");
primaryStage.getIcons().add(Utility.loadIcon("woz_figure.gif"));
} catch (IOException exception) { } catch (IOException exception) {
throw new RuntimeException(exception); throw new RuntimeException(exception);
} }