Login  Register

Urgent: Unable to terminate plug-in

Posted by hlee19 on Jul 12, 2015; 2:58am
URL: http://imagej.273.s1.nabble.com/Urgent-Unable-to-terminate-plug-in-tp5013523.html

Hello,
This is very urgent, so any help would be greatly appreciated!

I am coding an ImageJ plug-in and when I open a dialog box to ask the user to select something, I can't seem to terminate it when the user clicks the red x in the upper right hand corner, nor when the user selects the Cancel button.

1) IJ.showMessageWithCancel does return false when Cancel is selected, but I think the plugin is called again and again and so the program doesn't actually end. Is there a solution for this?
2) Is there a way for the code to return when the user selects the red x?

Thank you so much!