Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Se cambia nombre de imagen y se refactoriza las referencias #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -297,7 +297,7 @@ public void changed(ObservableValue<? extends String> 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()));
Expand Down
2 changes: 1 addition & 1 deletion client/src/main/resources/views/LoginView.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</ImageView>
<ImageView fx:id="Dominicview" fitHeight="93.0" fitWidth="124.0" pickOnBounds="true" preserveRatio="true" visible="false">
<image>
<Image preserveRatio="false" smooth="true" url="@../images/Dominic.png" />
<Image preserveRatio="false" smooth="true" url="@../images/dominic.png" />
</image>
</ImageView>
</children>
Expand Down