How to create Image delay

i have a image class, i would like to give a delay between each of the images. for example if i have image number 1 appear in the Jframe as soon as the software is rune the give a delay of mints and then the next image should appear how would i do this. any help would be nice thank you.
[294 byte] By [IDSAa] at [2007-11-27 6:15:20]
# 1

try something like try { Thread.sleep(random.nextInt(50)); } catch (InterruptedException ignore) {}

on the event dispatch thread.

corlettka at 2007-7-12 17:25:48 > top of Java-index,Java Essentials,Java Programming...
# 2

> try something like try {

> Thread.sleep(random.nextInt(50)); } catch

> (InterruptedException ignore) {}

on the event

> dispatch thread.

Couldn't a simple timer achieve the same thing?

tk393a at 2007-7-12 17:25:48 > top of Java-index,Java Essentials,Java Programming...