wood burning stoves 2.0
The moose likes Beginning Java and the fly likes Thread problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Thread problem" Watch "Thread problem" New topic

Thread problem

nabi bux
Ranch Hand

Joined: Mar 14, 2005
Posts: 73
Hi ,
Every body iam very upset about my asinment which is that i have to used
five pictures and the each picture displayed after the 1 minutes then i have write Thread.sleep(1000) the browser shows an error please tell me how i can use sleep() method is there any concept of it
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
Sleep in javascript on the client side, not java on the serverside.

setTimeout('displayNextPicture()', 60*1000);

Though that's not really sleeping since it's a callback.
[ April 12, 2005: Message edited by: Yuriy Zilbergleyt ]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Is this assignment in Java? or in JavaScript?

I have a feeling it is Java so I am moving there....

[ April 12, 2005: Message edited by: Eric Pascarello ]
Have you checked out Aspose?
subject: Thread problem
It's not a secret anymore!