File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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
author
Rancher

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

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

Eric
[ April 12, 2005: Message edited by: Eric Pascarello ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Thread problem
 
Similar Threads
Any chance that you will have a While X'mas?
Labels with Name in Javaranch Forum Site
unable to access jsp pages
Rueben or Clay??
Need IT Job in Canada