Login  Register

Re: how to disable results window and log table?

Posted by Michael Schmid on May 11, 2010; 9:54am
URL: http://imagej.273.s1.nabble.com/how-to-disable-results-window-and-log-table-tp3688351p3688354.html

Hi Pavita,

the Log and Results windows are opened automatically as soon as your  
macro creates output to them.
For the Log window, the solution is easy: simply store everything  
that you want to write in a String, and print the string to the Log  
window when your macro has finished.

For the Results Window, if it is populated by 'Analyze Particles' or  
the like, where you can't suppress output: A simple solution might be  
selecting it and using setLocation(x, y) to put it into some place at  
the right or bottom edge of the screen where the user barely notices  
its presence (see screenWidth, screenHeight). Put it back to a more  
obvious place when done.

By the way, concerning the Progress Bar: If you want to control it by  
the 'showProgress(progress)' macro command, it should be a Batch Mode  
macro. Then the other commands should not affect the Progress bar.

Michael
________________________________________________________________

On 11 May 2010, at 10:36, Pavita wrote:

> Dear all,
>
> i create application on ImageJ,  i want to open my macro,  see  
> progress bar while calculate and final show message window that is  
> my result. but i got a problem, Results and Log window are show  
> while calculate all time! .
>  i don't want to show Results and Log window.
>
> i try to close window by select it and command to close, but it  
> will show while calculate again. How do i?
>
>
> Thank,
> Pavita