Can someone give me an idea on how to do a count up timer in java? like "0:00:00" hh:mm:ss
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Can someone give me an idea on how to do a count up timer in java? like "0:00:00" hh:mm:ss
Graphical or console? Either can be done with a Timer, but the graphical case (a Swing app) should use a javax.swing.Timer.
Capture.JPG Here is my sample interface so i guess it's graphical. Is there a tut for Timer for java? it's the first time id heard of it.
There is a tutorial for most everything in Java somewhere on the web. Not all of them are good, however. A good place to start is with the Oracle tutorials, like this one on the Timer. You might also be interested in the main index for Swing tutorials, since I'm not sure what your experience level with Swing is. I recommend you ignore Oracle's suggestion to use Netbeans with the GUIBuilder and learn to code Swing by hand. (Using Netbeans without the GUIBuilder is fine.)