Login  Register

Re: log and prgress bar

Posted by Wayne Rasband on Sep 27, 2005; 3:38pm
URL: http://imagej.273.s1.nabble.com/log-and-prgress-bar-tp3704778p3704779.html

> I've created many plugins that use the IJ.log and
> IJ.showProgress methods. I'm trying to make an interface
> using PlugInFrame, but when I call the plugins from the
> interface unless there is a log window already open the
> IJ.log method does not work.  Also, the progress bar only
> updates after the plugin has run. 
>
> Does anyone have any suggestions to get these methods to run
> properly?

IJ.log() and IJ.showProgress() may not work as expected if they are
called from the event dispatch thread. You can work around this problem
by created a separate thread to do the processing. Refer to the IP_Demo
plugin at "http://rsb.info.nih.gov/ij/plugins/ip-demo.html" for an
example.

-wayne