I'm lost in terms of how to get 1 thread to stop another thread by changing one of its values.
say I've got a JButton which when pressed invokes thread 1.
I've also got another JButton which when pressed stops thread 1 from processing.
I'm lost since if I add a method to the class which thread1 runs and call it from the JButton the local varables are set since they are allocated on the runtime stack.
Not sure if im understanding this at all, but just a question :-)