Replacing a imageIcon
<p>I have a value called 'AmountWrongGuessed' that gives the amount of wrong guesses the users puts while guessing a word.<br>
Each times the word is not found in the arraylist the AmountWrongGuessed goes ++.  (tested this wih a println and it works properly)  </p>

<p>Now the problem is each time the AmountWrongGuessed goes 1 up it should display a ImageIcon.<br>
<em>But insteed it displays the last image icon all the time, and skips the other icons.</em>  </p>

<p>I use no layout mananger (its set to null, if this makes any difference in the total picture  setLayout = null)</p>

<p>Also while initialising this game the amountwrongguessed is default 0, yet it does not display the first imageicon either. (i used different labels before to add each icon on the same position but then i had the problem only the first image displayed and nothing changed).</p>

<pre><code>public HrView(Hrgame hg) {
    this.hg = hg;

    CreateComponents();
    SetLayoutComponents();
    UpdateComponents();
    AddListeners();
}
</code></pre>

<p>Creation of the images:</p>

<pre><code> private void CreateComponents() {

    hang0 = new ImageIcon("hang0.gif");
    lblHang = new JLabel(hang0);
    lblHang.setLocation(60, -10);
    lblHang.setSize(200, 200);       

    hang1 = new ImageIcon("hang1.gif");
    lblHang = new JLabel(hang1);
    lblHang.setLocation(60, -10);
    lblHang.setSize(200, 200);

    hang2 = new ImageIcon("hang2.gif");
    lblHang = new JLabel(hang2);
    lblHang.setLocation(60, -10);
    lblHang.setSize(200, 200);
}

  private void AddListeners()
{
    btnCheck.addActionListener(new ActionListener()
    {
        public void actionPerformed(ActionEvent e)
        {

            hg.Input(tfToGuessInput.getText().toLowerCase());
            Pictures();
            lblHang.updateUI();

        }
    });
}


private void Pictures()
{
    //works, does increment
    System.out.println(hg.getAmountWrongGuessed());

    if (hg.getAmountWrongGuessed() == 0) {
        add(lblHang);
    }
    if (hg.getAmountWrongGuessed() == 1) {
        add(lblHang);
    }
    if (hg.getAmountWrongGuessed() == 2) {
        add(lblHang);
    }
}
</code></pre>
