diff --git a/src/tec/letsgoing/ardublock/simulator/view/GUI.java b/src/tec/letsgoing/ardublock/simulator/view/GUI.java index 1a34d16f7632fdff6bbb6ae8290fb92a1208034c..025ca54e5e3cedcf57e382962ecf4c5c01491a28 100644 --- a/src/tec/letsgoing/ardublock/simulator/view/GUI.java +++ b/src/tec/letsgoing/ardublock/simulator/view/GUI.java @@ -78,20 +78,12 @@ public class GUI extends JFrame implements Runnable, ActionListener { JButton reloadButton = new JButton(); JButton measButton = new JButton(); - //Changes by Anian: added res to build-path (subfolder img) to export images to .jar file - //TODO get Images (Modules and Arduino) in ArduBlock and from .jar-File - // e.g. by getToolkit().getImage(GUI.class.getResource("PathToImage")) - //-> compare OpenBlocks-Workspace.java line 156 - // creating Modules with images -> maybe pass img by parameter? -> getToolkit not available in Modules... + 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("res/img/Play.png")); -// stopButton.setIcon(new ImageIcon("res/img/Stop.png")); -// reloadButton.setIcon(new ImageIcon("res/img/Reload.png")); -// measButton.setIcon(new ImageIcon("res/img/Measure.png")); + goButton.addActionListener(simu); stopButton.addActionListener(simu);