title: How to change icon in JLabel with JButton
body: <p>I'm making a simple conversion tool to convert dollars to euro's and vice versa.</p>
  
  <p>The whole purpose is just to experiment and learn this cool tool, java.</p>
  
  <p>I have a JLabel at the top with an icon of a euro to indicate the starting currency. I have a button bellow this that I want to use to change that icon to a dollar one. </p>
  
  <p>I am currently plying around with an ActionListener and trying different variations of setIcon/setIconImage (every itteration I can think of seeing that nothing has worked thus far).</p>
  
  <hr>
  
  <pre><code>public class MoneyConverter extends JFrame implements ActionListener{
       //add label and icon showing base conversion currency
       JLabel startcur = new JLabel("&lt;--- Starting Curency", new ImageIcon("C:\\Users\\Russel\\Desktop\\1euro.gif"), SwingConstants.CENTER);
       JButton euro = new JButton("Swap to Euro");
       JButton dollar = new JButton("Swap to Dollar");
  </code></pre>
  
  <hr>
  
  <p>I then set up a </p>
  
  <pre><code>public MoneyConverter(){} 
  </code></pre>
  
  <p>method and add all my components to a grid layout and add ActionLister's to my convert buttons.</p>
  
  <p>e.g.</p>
  
  <pre><code>    dollar.addActionListener(this);
      euro.addActionListener(this);
  </code></pre>
  
  <p>After the usual code (setVisible and the likes that I will omit for your sake as I don't see it interfering with this, please let me know if I should include it all)</p>
  
  <pre><code>public void ActionPerformed (ActionEvent e){
      Object source = e.getSource();
      if (source.equals(euro)){
           startcur.setIcon(new ImageIcon("C:\\Users\\Russel\\Desktop\\1.gif"));
      }
  }
  </code></pre>
  
  <p>This part has been changed many times and is the main reason for this post, how do I change this icon in the JLabel? - I will also be setting the conversion rate in here depending if they choose to start with dollars or euros. (Rate won't be actual rate.)</p>