From 55c662291db5224743727e1c2b255b1942aa9932 Mon Sep 17 00:00:00 2001 From: Carlos Galindo Date: Mon, 13 Jun 2016 12:10:47 +0200 Subject: [PATCH] Set icon --- src/main/java/es/kauron/jstudy/Main.java | 6 +++--- src/main/resources/es/kauron/jstudy/img/icon.png | Bin 0 -> 3432 bytes 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 src/main/resources/es/kauron/jstudy/img/icon.png diff --git a/src/main/java/es/kauron/jstudy/Main.java b/src/main/java/es/kauron/jstudy/Main.java index 26541e2..116bcd6 100644 --- a/src/main/java/es/kauron/jstudy/Main.java +++ b/src/main/java/es/kauron/jstudy/Main.java @@ -5,6 +5,7 @@ import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; +import javafx.scene.image.Image; import javafx.stage.Stage; public class Main extends Application { @@ -14,11 +15,10 @@ public class Main extends Application { AppConfig.load(); Parent root = FXMLLoader.load(Main.class.getResource("view/main.fxml")); primaryStage.setTitle("JStudy"); + primaryStage.getIcons().add(new Image(Main.class.getResourceAsStream("img/icon.png"))); primaryStage.setScene(new Scene(root)); primaryStage.show(); - primaryStage.setOnCloseRequest(event -> { - AppConfig.save(); - }); + primaryStage.setOnCloseRequest(event -> AppConfig.save()); } diff --git a/src/main/resources/es/kauron/jstudy/img/icon.png b/src/main/resources/es/kauron/jstudy/img/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..f481dc93c3e2eae0f7891277c4b7c2fedce57227 GIT binary patch literal 3432 zcmV-u4VUtXP)X8>?5kPBpJzup0y0$PC<;Lt_SVW3TcucZL2 zOSS_j1ttQsfCYe4@N0s=OTZ3bH{e$wBn6N-(!Ib0U=gq|LCvTKHUW(a1f&4WCp`_A z1grpNTdaB8fv1683Uo^Wh$X%lSOPqnBz9c|Y*gU56hLgmR|2aO=;B2T5o;7^k^+c~ z_;O$^Ft?9PwzmQ+6?H`+1#ku8bF?phc^_S!uG2ii87Y8o6K@0N0h>t;)B#%*2&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