title: Forcing Java to refresh the Java Swing GUI
body: <p>Ive coded two Computers to play each other in Reversi, however when they play each other. The board only updates after the game has finished. </p>
  
  <p>From some googling around I know its has something to do the AWT Event Thread, but I still have no idea how to force the JFrame to refresh. </p>
  
  <p>My function works by changing the icons and then calling revalidate and repaint.
  Any pointers would be wonderful.</p>