wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes How do I add a wait. 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 "How do I add a wait." Watch "How do I add a wait." New topic
Author

How do I add a wait.

Fritz Largosa
Ranch Hand

Joined: Sep 12, 2005
Posts: 70
I am wanting to pause between two lines of code for a few seconds. I used this.wait(1000); but it doesn't work. Is there a way to put a wait in between two lines of code? Thanks,
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
You should do something like this.

Fritz Largosa
Ranch Hand

Joined: Sep 12, 2005
Posts: 70
works great, thanks.
 
Consider Paul's rocket mass heater.
 
subject: How do I add a wait.
 
Similar Threads
Bean class not found
control space between two lines in a textpane
how to convert byte[] to blob
Difference between the two types of tostring methods?
deletion of space between two lines