permaculture playing cards*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 15376
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 ]
subject: Thread problem
Similar Threads
Need IT Job in Canada
Rueben or Clay??
Labels with Name in Javaranch Forum Site
Any chance that you will have a While X'mas?
unable to access jsp pages