title: Delay between drawing of two icons in Java
body: <p>I have a piece of code in Java which draws 2 icons to the screen. I want to enforce a delay between them, and am unsure of the best way.</p>
  
  <p>At the moment I have;</p>
  
  <pre><code>cell.setIcon(image1);
  Thread.sleep(500); // Ignored try() for brevity
  cell2.setIcon(image2);
  </code></pre>
  
  <p>But this seems to cause the delay before <em>either</em> are drawn. Why is this, and how can I fix it?</p>