logo       

Re: how to refresh an image when the file is modified?: msg#00150

java.imagej

Subject: Re: how to refresh an image when the file is modified?

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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise