Skip to content
Snippets Groups Projects
Commit 1551acc5 authored by buehlera's avatar buehlera
Browse files

changed "res"-folder- stucture and added correct image path

parent 161ecaa9
No related branches found
No related tags found
No related merge requests found
...@@ -59,13 +59,13 @@ public class GUI extends JFrame implements Runnable, ActionListener { ...@@ -59,13 +59,13 @@ public class GUI extends JFrame implements Runnable, ActionListener {
super("ArdubBlock Simulator"); super("ArdubBlock Simulator");
//Konstruktor der Module //Konstruktor der Module
modules[0] = new RGB(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/PM31_RGB_LED.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("/img/PM26_Taster.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("/img/Taster_Off.png"))), new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/Taster_Off.png"))),
new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/Taster_On.png")))); new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/Taster_On.png"))));
modules[2] = new Poti( modules[2] = new Poti(
new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/PM24_Potentiometer.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("/img/ArduinoUno.png"))), modules[3] = new ArduinoUno(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/ArduinoUno.png"))),
simu); simu);
//this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Vermutlich nicht gewünscht. //this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Vermutlich nicht gewünscht.
...@@ -111,10 +111,10 @@ public class GUI extends JFrame implements Runnable, ActionListener { ...@@ -111,10 +111,10 @@ public class GUI extends JFrame implements Runnable, ActionListener {
JButton reloadButton = new JButton(); JButton reloadButton = new JButton();
JButton measButton = new JButton(); JButton measButton = new JButton();
goButton.setIcon(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/img/Play.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("/img/Stop.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("/img/Reload.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("/img/Measure.png")))); measButton.setIcon(new ImageIcon(getToolkit().getImage(GUI.class.getResource("/tec/letsgoing/ardublock/simulator/img/Measure.png"))));
goButton.addActionListener(simu); goButton.addActionListener(simu);
stopButton.addActionListener(simu); stopButton.addActionListener(simu);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment