Hi guys,
How do you use Timer to read from a text file and update a TextField?
Printable View
Hi guys,
How do you use Timer to read from a text file and update a TextField?
A Timer itself does not know how to read from a text file.
You would have to read from the text file first (See the thread "Scanner or BufferedReader" for help on that), then parse your data, and set up the Timer. Then finally you can update the text field by calling the appropriate method.