Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Waiting in program

  Asked By: Rani    Date: Dec 26    Category: Java    Views: 728
  

i am trying to make my program wait a certain number of seconds
before performing a task and i was wondering if someone could tell
me how i could do this.

basically i want to press a button then it waits x number of seconds
till it then opens a window

its for a program to show how long a web page will take to download
on a slow connection.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Jean Bell     Answered On: Dec 26

try the sleep method in the Thread class.

 
Didn't find what you were looking for? Find more on Waiting in program Or get search suggestion and latest updates.




Tagged: