Re: Want Clean UI
Posted by
Michael Schmid on
Jan 04, 2011; 9:27am
URL: http://imagej.273.s1.nabble.com/How-to-Make-a-Clean-UI-for-Imagej-Macro-tp3686073p3686074.html
Hi Tank,
in a macro you can use setBatchMode(true) to disable displaying (and
updating) images on the screen.
In a plugin (java code), obviously, don't call ImagePlus.show() if
you don't want to see the image.
Hope this helps,
Michael
________________________________________________________________
On 3 Jan 2011, at 19:56, tankhead wrote:
> Hi,
>
> I am a medical physics intern and am currently working on an automated
> winston-lutz test using an imagej macro. I have it functioning
> perfectly
> but am disappointed in the user interface. The image, threshold,
> measurement, log, and results windows are displayed. I tried using
> setLocation at 5000,5000 to set the windows off-screen but it
> requires that
> the window is already opened before it moves the window. My
> program has a
> few flashes from the windows opening and then quickly moving off-
> screen
> before the log window shows the user whether the test passed or not.
>
> Please provide suggestions or actual code that will either let me
> set the
> location of a window before it opens or somehow hides windows when
> imagej is
> functioning. I forgot to mention that I also have hidden the
> ImageJ toolbar
> off screen too, so dont worry about that. I am fairly novice at java
> programming so please write out the code and give as much detail as
> possible. THANKS in advance!
>
> -Tank