i try to display the running time,but it just show the present time and not update the time although i use multi threading in my program.
Program part look likes:-
Even when i put the code common to both in run method it not works for me
thanks in advance
Joined: May 29, 2005
Assuming this is in Swing, you cannot reliably update a Swing GUI from outside the UI thread, no matter how many other threads you use. Perhaps you need to put it into something run by java.awt.EventQueue.invokeLater() ?