This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
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.