"WaitForUserDialog" doesn't work in my "ActionListener" plugin
Posted by
Ghislain BUGNICOURT-2 on
Oct 28, 2009; 12:35pm
URL: http://imagej.273.s1.nabble.com/WaitForUserDialog-doesn-t-work-in-my-ActionListener-plugin-tp3690634.html
Dear all,
My goal is to use "WaitForUserDialog" in a plugin that gathers my
self-made processes.
I tried to simplify my plugin in the attached document ("_Truc", just
add ".java" to use). The first occurence of "WaitForUserDialog" works
fine. The second one, whithin an "actionPerformed", blocks ImageJ
completely.
NB : The only way I found to leave ImageJ after the bug occured was
the famous "kill -9" command (or killing the java process when I
tried on windows).
I guess the problem comes from the fact that two "actionPerformed"
are active at the same time, but I really can't go deeper...
Could you help me use such a non-modal dialog when clicking a button
in my plugin ?
Thanks a lot
Ghislain Bugnicourt
PS : I use ImageJ 1.43i. The problem also occurs using
"NonBlockingGenericDialog".

>