Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-08-2003, 07:31 PM   PM User | #1
JavaTest?
New Coder

 
Join Date: Jan 2003
Location: USA
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
JavaTest? is an unknown quantity at this point
Pause in Java

I am making an 8-Ball applet and I want to make the 8-Ball pause before it is redrawn in a different location.

How do you make a program pause for a set amount of time before completting the next action in the code?
JavaTest? is offline   Reply With Quote
Old 01-08-2003, 07:37 PM   PM User | #2
scroots
Senior Coder

 
Join Date: Jun 2002
Location: UK
Posts: 1,137
Thanks: 0
Thanked 0 Times in 0 Posts
scroots is an unknown quantity at this point
i don`t know but i once built a javascript 8ball when i started out, i plan to improve it.

scroots
__________________
Spammers next time you spam me consider the implications:
(1) that you will be persuaded by me(in a legitimate mannor)
(2)It is worthless to you, when i have finished
scroots is offline   Reply With Quote
Old 01-08-2003, 07:41 PM   PM User | #3
JavaTest?
New Coder

 
Join Date: Jan 2003
Location: USA
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
JavaTest? is an unknown quantity at this point
Quote:
Originally posted by scroots
i don`t know but i once built a javascript 8ball when i started out, i plan to improve it.

scroots
Show me yours; I'll show you mine.
JavaTest? is offline   Reply With Quote
Old 01-08-2003, 07:48 PM   PM User | #4
scroots
Senior Coder

 
Join Date: Jun 2002
Location: UK
Posts: 1,137
Thanks: 0
Thanked 0 Times in 0 Posts
scroots is an unknown quantity at this point
mine is terible, people i know thought it was good.
i will revamp it and show it to you tomorrow.

scroots
__________________
Spammers next time you spam me consider the implications:
(1) that you will be persuaded by me(in a legitimate mannor)
(2)It is worthless to you, when i have finished
scroots is offline   Reply With Quote
Old 01-10-2003, 02:19 PM   PM User | #5
ahosang
Regular Coder

 
Join Date: Sep 2002
Location: Surrey, UK
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
ahosang is an unknown quantity at this point
You need to look into threading, and in particular the Thread.sleep() method. This is a standard java class.
ahosang is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:25 AM.


Advertisement
Log in to turn off these ads.