From 4f2cf9305552a626cda76e832c0e8c042874de4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Publio=20Estupi=C3=B1=C3=A1n?= Date: Wed, 12 Dec 2018 21:46:49 -0500 Subject: [PATCH] - Se cambia nombre de imagen y se refactoriza las referencias --- .../java/com/client/chatwindow/ChatController.java | 4 ++-- .../resources/images/{Dominic.png => dominic.png} | Bin client/src/main/resources/views/LoginView.fxml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename client/src/main/resources/images/{Dominic.png => dominic.png} (100%) diff --git a/client/src/main/java/com/client/chatwindow/ChatController.java b/client/src/main/java/com/client/chatwindow/ChatController.java index d5ec9a2..4296492 100644 --- a/client/src/main/java/com/client/chatwindow/ChatController.java +++ b/client/src/main/java/com/client/chatwindow/ChatController.java @@ -169,7 +169,7 @@ public void setUsernameLabel(String username) { } public void setImageLabel() throws IOException { - this.userImageView.setImage(new Image(getClass().getClassLoader().getResource("images/Dominic.png").toString())); + this.userImageView.setImage(new Image(getClass().getClassLoader().getResource("images/dominic.png").toString())); } public void setOnlineLabel(String usercount) { @@ -297,7 +297,7 @@ public void changed(ObservableValue observable, String oldValu public void setImageLabel(String selectedPicture) { switch (selectedPicture) { case "Dominic": - this.userImageView.setImage(new Image(getClass().getClassLoader().getResource("images/Dominic.png").toString())); + this.userImageView.setImage(new Image(getClass().getClassLoader().getResource("images/dominic.png").toString())); break; case "Sarah": this.userImageView.setImage(new Image(getClass().getClassLoader().getResource("images/sarah.png").toString())); diff --git a/client/src/main/resources/images/Dominic.png b/client/src/main/resources/images/dominic.png similarity index 100% rename from client/src/main/resources/images/Dominic.png rename to client/src/main/resources/images/dominic.png diff --git a/client/src/main/resources/views/LoginView.fxml b/client/src/main/resources/views/LoginView.fxml index b4cc3a6..f7225cd 100644 --- a/client/src/main/resources/views/LoginView.fxml +++ b/client/src/main/resources/views/LoginView.fxml @@ -51,7 +51,7 @@ - +