title: repaint components in a loop
body: <p>I'm creating a simple game and I'd like to repaint the board after every move.  So, after I call move(), what I would like to do is this: (by the way, a View is a JComponent that holds pieces; since the number of pieces has changed after the move, it needs to be repainted)</p>
  
  <pre><code>for(View v : views){            
          v.repaint();
      }
  </code></pre>
  
  <p>It's not working.  When I call <code>repaint()</code> on a single View, it works fine.  I tried using <code>paintImmediately</code>, and <code>revalidate</code>, and <code>update</code>... nothing works within the loop.</p>
  
  <p>Any ideas?  Thanks in advance.</p>
  
  <p><em>EDIT:</em> I should add that repaint() does get called when the window is resized, so I know that View's paintComponent method is valid and works.  It's just not being called from the loop.  When the debugger steps through the loop, it does not enter repaint() and nothing happens to the screen.</p>