The method placePiece correctly places an ImageIcon on a JButton. I would like the image to remain there for one second and then be replaced with a different colored ImageIcon. The problem with the following code is that the red ImageIcon never appears. The delay takes place and then the black ImageIcon appears. I would like the red ImageIcon to appear, then have a 1 second delay, and then the black one appear. Thanks in advance for any help.

```
placePiece(0, 3, "red");
//delay 1 second here
try 
{
    Thread.sleep(1000);
}
catch (Exception exc)  { }
placePiece(0, 3, "black");

```