Re: how to refresh an image when the file is modified?
Posted by Wayne Rasband on Nov 18, 2005; 12:42am
URL: http://imagej.273.s1.nabble.com/how-to-refresh-an-image-when-the-file-is-modified-tp3704434p3704435.html
> I'd like to be able to refresh an image by reading again the file
> it comes from.
> I tried
> imp.updateAndRepaintWindow();
>
> and several others but that doesn't work.
>
> Any idea welcome.
Try
IJ.run("Revert")
which is equivalent to running the File>Revert command.
-wayne