this part is in another class and holds the thread/program untill the notifyall is called
once the button is pressed notifyall is called and the tester variable is changed to true but the system does not recognise this or the notify is not holding lock on this object and the previous thread does not awaken or continue
this is a small part of the program as in whole the whole program is 1000+ lines of code i have attached the files if you want to inspect the whole program
if you have the files type in this exactly:
please type in the textarea exactly as you see it with newline and all as it will generate errors if not done properly
press the parse button once the text is entered as you see it
the step button is supposed to allow the user to go through code step by step
Pertaining directly to your code: You need to provide some Object which is shared between both the Object which contains the first bit of code, and the Object which contains the notify() call. You then use that Object to synchronize on, and you also call wait() and notify() on that Object. As a quick guess - you have an Object - f1 - which holds your boo variable which you use in the while loop to make sure the wait() is not interrupted spuriously. You could probably synchronize on f1, then call f1.wait() and f1.notify() as appropriate.
I don't have your code (nor do I want to sift through 1000+ lines of code. But here is a rough sample:
First of all, one can use different kinds of Queues from java.util and java.util.concurrent.
For launching background thread from Swing, class javax.swing.SwingWorker can be used.