ok so I have a JButton that has an image on it,
and then after 4 seconds i want to put a differant image on it
but the problem is the first image wont load
I'm using
button1.setIcon (icon);
try
{
Thread.sleep (4000); //sleeping for 4 seconds
}
catch (InterruptedException e)
{
}
button1.setIcon (icon1);
I really dont get why this is hapening, the images are fine, becouse If i switch them around the second one always only displays