This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a gui which contains a bunch of buttons. Each button corresponds to a process that I am monitoring. When a button is clicked, I need to display any messages pertaining to that process that I have. When an another button in clicked, I abandon the previous process and display updates for the another process.
My initial design was to have one thread which will display message for all the processes. Whenever a different button is clicked, I will update a variable in the thread to indicate it to get the update for a different process. This however, is not working, the thread starts and runs fine for the first click but doesn't seem to get notified when the second button is clicked.