How do I go about making a timer that will increment the time in a JFormattedTextField?
Look at http://download.oracle.com/javase/6/docs/api/javax/swing/Timer.html
This lets you execute an ActionListener repeatedly in the Swing event thread with a specified delay.
The just get and set the value from the textfield.
Edit: not a Runnable but an ActionListener
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.