Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Pause in Java

  1. #1
    New Coder
    Join Date
    Jan 2003
    Location
    USA
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  2. #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  3. #3
    New Coder
    Join Date
    Jan 2003
    Location
    USA
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  4. #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  5. #5
    Regular Coder
    Join Date
    Sep 2002
    Location
    Surrey, UK
    Posts
    119
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You need to look into threading, and in particular the Thread.sleep() method. This is a standard java class.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •