Login  Register

Re: Macro run problem?

Posted by Nathaniel Ryckman on Jun 22, 2011; 4:33pm
URL: http://imagej.273.s1.nabble.com/Re-Macro-run-problem-tp3684172p3684175.html

Someone else had this problem as well:

http://imagej.588099.n2.nabble.com/quot-WaitForUserDialog-quot-doesn-t-work-in-my-quot-ActionListener-quot-plugin-td3905258.html

You cannot launch a GUI from an event action handler:

http://publib.boulder.ibm.com/infocenter/p8docs/v4r5m1/index.jsp?topic=%2Fcom.ibm.p8.doc%2Fdeveloper_help%2Fcontent_engine_api%2Fguide%2Fserver_concepts.htm

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