Login  Register

Re: Need to close the result table from my java application

Posted by Md Tamjidul Hoque on Mar 17, 2010; 9:24am
URL: http://imagej.273.s1.nabble.com/Need-to-close-the-result-table-from-my-java-application-tp3687988p3687999.html

Many thanks.

- Tamjid

On Wed, Mar 17, 2010 at 4:43 AM, EHB2010 <[hidden email]> wrote:

> I'm sorry that was bad advice. I've just had a quick look at the source
> code
> for results tables. It's actually very simple- this plugin makes invisible
> the results window on my system:
>
> import ij.WindowManager;
> import ij.plugin.PlugIn;
> import java.awt.*;
>
> public class TestPlugin_  implements PlugIn {
>
>        public void run(String arg) {
>
>                Frame[] arrayOfFrames = WindowManager.getNonImageWindows();
>                for (int i = 0 ; i < arrayOfFrames.length ; ++i) {
>                        String localName = arrayOfFrames[i].getTitle();
>                        if ( localName.equalsIgnoreCase("Results")){
>                                arrayOfFrames[i].setVisible(false);
>                        }
>                }
>        }
> }
>
> BW
> --
> View this message in context:
> http://n2.nabble.com/Need-to-close-the-result-table-from-my-java-application-tp4713378p4745635.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>