| | |
Stop Watch
![]() |
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 ...
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 ...
![]() |
Similar Threads
- simple c++ program (any help would be greatly appreciated) (C++)
- Stop watch (VB.NET)
- how to make a stop watch (Visual Basic 4 / 5 / 6)
- More Questions (VB.NET)
- How to combine ".bin movies" in Mac? (OS X)
Other Threads in the Java Forum
- Previous Thread: help required for implementing project using JAVA & XML
- Next Thread: Time-table Preparing
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary blackberry block bluetooth character chat class client code component consumer csv database desktop developmenthelp eclipse error fractal ftp game givemetehcodez graphics gui html ide image integer j2me j2seprojects japplet java javaarraylist javac javaee javaprojects jni jpanel julia lego linked linux list loops mac map method methods mobile netbeans newbie number objects online oriented panel printf problem program programming project projects properties recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server set singleton sms sort sql string swing test textfields threads time title tree tutorial-sample ubuntu update windows working






