diff --git a/client/src/main/java/client/UI.java b/client/src/main/java/client/UI.java index 327ca82..af43795 100644 --- a/client/src/main/java/client/UI.java +++ b/client/src/main/java/client/UI.java @@ -5,16 +5,26 @@ import client.scenes.MainCtrl; import client.utils.ServerUtils; import com.google.inject.Injector; import javafx.application.Application; +import javafx.scene.image.Image; import javafx.stage.Stage; + import static com.google.inject.Guice.createInjector; public class UI extends Application { private static final Injector INJECTOR = createInjector(new MyModule()); private static final MyFXML FXML = new MyFXML(INJECTOR); + @Override public void start(Stage primaryStage) throws Exception { + primaryStage.getIcons().add( + new Image(getClass().getResourceAsStream("/Penguin.png")) + ); + + + + var serverUtils = INJECTOR.getInstance(ServerUtils.class); if (!serverUtils.isServerAvailable()) { var msg = "Server needs to be started before the client, but it does not seem to be available. Shutting down."; diff --git a/client/src/main/resources/Penguin.png b/client/src/main/resources/Penguin.png new file mode 100644 index 0000000..db7aaa1 Binary files /dev/null and b/client/src/main/resources/Penguin.png differ diff --git a/client/src/main/resources/Penguina.png b/client/src/main/resources/Penguina.png new file mode 100644 index 0000000..3cedb68 Binary files /dev/null and b/client/src/main/resources/Penguina.png differ diff --git a/client/src/main/resources/client/scenes/FoodpalApplication.fxml b/client/src/main/resources/client/scenes/FoodpalApplication.fxml index dcbc79d..a6b0b49 100644 --- a/client/src/main/resources/client/scenes/FoodpalApplication.fxml +++ b/client/src/main/resources/client/scenes/FoodpalApplication.fxml @@ -15,6 +15,9 @@ + + + @@ -25,6 +28,14 @@ + + + + + + + +