Login  Register

Closing Modified Image Windows

Posted by Mark Loeffen on Sep 06, 2006; 4:04am
URL: http://imagej.273.s1.nabble.com/Closing-Modified-Image-Windows-tp3701658.html

I am writing a Plugin that opens a bunch of Images, modifies some, and
stores the results in a stack. I then want to close all the original Image
windows. I am currently closing the input windows by automatically selecting
each in turn and running win.close(). This works fine for windows that have
not been modified, but those that have been modified, it brings up the "Save
Changes" dialog box. I would like to close each of these windows
automatically without having to manually click "No" to each one that has
been modofied. Can someone please show me how to do this? Thanks.