Login  Register

How to Make a Clean UI for Imagej Macro

Posted by tankhead on Jan 03, 2011; 6:56pm
URL: http://imagej.273.s1.nabble.com/How-to-Make-a-Clean-UI-for-Imagej-Macro-tp3686073.html

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