From 4ccb2c80f23423d2c20a83970c9b174e404258b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20D=C3=BCsterhaus?= Date: Tue, 31 Jan 2023 16:22:57 +0100 Subject: [PATCH] =?UTF-8?q?kleine=20=C3=A4nderung=20an=20der=20image=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/vpr_javafx/HelloController.java | 14 ++++++++------ .../example/vpr_javafx/HelloController.class | Bin 11026 -> 11217 bytes 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/example/vpr_javafx/HelloController.java b/src/main/java/com/example/vpr_javafx/HelloController.java index 0ae05dc..20ec7bb 100644 --- a/src/main/java/com/example/vpr_javafx/HelloController.java +++ b/src/main/java/com/example/vpr_javafx/HelloController.java @@ -127,11 +127,13 @@ public class HelloController { @FXML - private String veggieImageUrl = "vegetarisch.png"; + final String imagePathUrl = "file:target/classes/com/example/vpr_javafx/pics/"; @FXML - private String veganUrl = "vegan.png"; + final String veggieImageUrl = imagePathUrl + "vegetarisch.png"; @FXML - private String meatUrl = "fleisch.png"; + final String veganImageUrl = imagePathUrl + "vegan.png"; + @FXML + final String meatImageUrl = imagePathUrl + "fleisch.png"; @FXML private String imageUrl; @@ -163,16 +165,16 @@ public class HelloController { String dayMenu = dish+"\n"+sideDish+"\n"+"("+allergenic+")"; if(typ.equals("Fleisch")) { - imageUrl=meatUrl; + imageUrl=meatImageUrl; } if(typ.equals("Vegetarisch")) { imageUrl=veggieImageUrl; } if(typ.equals("Vegan")) { - imageUrl=veganUrl; + imageUrl=veganImageUrl; } - Image image = new Image("file:target/classes/com/example/vpr_javafx/pics/" + imageUrl); + Image image = new Image(imageUrl); switch (i) { case 0: diff --git a/target/classes/com/example/vpr_javafx/HelloController.class b/target/classes/com/example/vpr_javafx/HelloController.class index 9500c6735b69ae77dc35673fe6088288382ed462..3e7d74d67e44b256d89a09bd5276d972b7c1dca6 100644 GIT binary patch literal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