Change image with if statement
<p>When the program loads, there's already and image for a place holder</p>

<pre><code>ImageIcon icon = new ImageIcon(Path + "Hangman1.jpg");   
JLabel label = new JLabel();
label.setIcon(icon);
</code></pre>

<p>Now i know how to write an if statement that prints out the body part</p>

<pre><code>if (guesses &gt;= 1) System.out.print("HEAD ");
if (guesses &gt;= 2) System.out.print("BODY ");
if (guesses &gt;= 3) System.out.print("LEFT ARM ");
if (guesses &gt;= 4) System.out.print("RIGHT ARM ");
if (guesses &gt;= 5) System.out.print("LEFT LEG ");
if (guesses &gt;= 6) System.out.print("RIGHT LEG ");
</code></pre>

<p>But instead of using a normal System.out.print i want to call up my images (want the image to change)</p>
