Java - Image flicker
<p>OK so take a look at this vid (it's 3 seconds long..) showing the problem:</p>

<p><a href="http://www.screenr.com/VbV" rel="nofollow">http://www.screenr.com/VbV</a></p>

<p>See how the images flicker when you first enter the room?</p>

<p>Here's how I have the images set up (they are pulled from <code>tiles</code> folder in the .jar file)</p>

<pre><code>            for (int i = 0; i &lt; 522; i++) {
tiles[i] = tk.getImage(this.getClass().getResource(String.format("tiles/t%d.png", i)));

                  }
</code></pre>

<p>and here's how they are painting on:</p>

<pre><code>        for (row = 0; row &lt; board.length; row++) {
            for (col = 0; col &lt; board[row].length; col++) {
                  int index = board[row][col];
                  g.drawImage(tiles[index], 32 * col, 32 * row, this);

            }
      } 
</code></pre>

<p>How do I stop the flicker... </p>
