From 1551acc56b3b9dbfcd4241bb1deaf590ed25027f Mon Sep 17 00:00:00 2001 From: buehlera <buehlera@tec-nb-buehlera> Date: Mon, 5 Oct 2020 09:36:35 +0200 Subject: [PATCH] changed "res"-folder- stucture and added correct image path --- .../ardublock/simulator/view/GUI.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/tec/letsgoing/ardublock/simulator/view/GUI.java b/src/tec/letsgoing/ardublock/simulator/view/GUI.java index 5133ddd..0e752ea 100644 --- a/src/tec/letsgoing/ardublock/simulator/view/GUI.java +++ b/src/tec/letsgoing/ardublock/simulator/view/GUI.java @@ -59,13 +59,13 @@ public class GUI extends JFrame implements Runnable, ActionListener { super("ArdubBlock Simulator"); //Konstruktor der Module - modules[0] = new RGB(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/PM31_RGB_LED.png")))); - modules[1] = new Button(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/PM26_Taster.png"))), - new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/Taster_Off.png"))), - new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/Taster_On.png")))); + modules[0] = new RGB(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/PM31_RGB_LED.png")))); + modules[1] = new Button(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/PM26_Taster.png"))), + new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/Taster_Off.png"))), + new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/Taster_On.png")))); modules[2] = new Poti( - new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/PM24_Potentiometer.png")))); - modules[3] = new ArduinoUno(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/ArduinoUno.png"))), + new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/PM24_Potentiometer.png")))); + modules[3] = new ArduinoUno(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/ArduinoUno.png"))), simu); //this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Vermutlich nicht gewünscht. @@ -111,10 +111,10 @@ public class GUI extends JFrame implements Runnable, ActionListener { JButton reloadButton = new JButton(); JButton measButton = new JButton(); - goButton.setIcon(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/Play.png")))); - stopButton.setIcon(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/Stop.png")))); - reloadButton.setIcon(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/Reload.png")))); - measButton.setIcon(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/Measure.png")))); + goButton.setIcon(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/Play.png")))); + stopButton.setIcon(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/Stop.png")))); + reloadButton.setIcon(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/Reload.png")))); + measButton.setIcon(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/Measure.png")))); goButton.addActionListener(simu); stopButton.addActionListener(simu); -- GitLab