Hi, I posted this question in the swing section, but it might be more of a threading issue, so I have posted here too.
I've located the source of my earlier timer problem.
The
test code shown below works fine:
However, when I modify the mouseReleased method to:
The timer no longer works. (The invokeLater method is there to allow the GUI to repaint itself first, instead of after the code inside the run() method of someRunnableObject completes, which is what tends to happen)
Even better would be to put the timer.start() inside the run() method of the someRunnableObject, but that doesn't work either.
Does anyone know how to resolve this?
Thanks very much for all your help