Scratch that last post....
I guess I'm way too rusty to help you with threads. I do know that this wait command in the show command of the WaitForUserDialog class is what is responsible for freezing things though....
public void show() {
super.show();
synchronized(this) { //wait for OK
IJ.log("test");
try {wait();} catch(InterruptedException e) {return;}
}
}
Amelie Marzin wrote
I have something you can try.
I recreated my problem with Mouse_Listener.java :
I just added the following :
new WaitForUserDialog("Do something, then click OK").show();
at differents places.
Just add this line first in run(), then in mousePressed(MouseEvent e).
Please tell me if you have the same problem as me : in the first case, it's ok ; in the second, everything freezes.
And if you have any idea ... ;)
Thanks,
Amélie