Stop Watch

Reply

Join Date: Jul 2004
Posts: 14
Reputation: Bill T is an unknown quantity at this point 
Solved Threads: 0
Bill T Bill T is offline Offline
Newbie Poster

Stop Watch

 
0
  #1
Aug 1st, 2004
Hi Again,
Im writing a program of a version of stop watch that uses a varible instance
also callcount must be used and start at 10 everytime called decreases by one until zero then messgae displayed.

Can someone help me please!!!!
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 54
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: Stop Watch

 
0
  #2
Aug 8th, 2004
if you are using swing components ....then try using this ...

Timer t = new Timer(ActionListener, delay);

and if you use the java.util.Timer class ... then try this ...

Timer t = new Timer();

a rough Algo for your program

INITIALIZE THE TIMER
FOR LOOP DECREASING VALUES UNTIL ZERO
DO WHAT YOU WANT TO DO ...
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC