Login  Register

Re: "selectWindow()" in plugin

Posted by Ben.BigHair on Oct 09, 2007; 5:49pm
URL: http://imagej.273.s1.nabble.com/selectWindow-in-plugin-tp3698243p3698244.html

On Oct 9, 2007, at 9:01 AM, Sami Willman wrote:

> Hi,
>
> I have written a macro, that compares two images.
> Now I would like to convert that macro into a plugin and need a  
> piece of
> advice..
>
> In macro I can select window with command:
> selectWindow("image1.tif");
>

Hello,

Try ...

import ij.*;

and...

IJ.selectWindow("image1.tif");

Cheers,
Ben

> How can I do this with plugin?
>
> -Sami

Ben Tupper
[hidden email]

I GoodSearch for Ashwood Waldorf School.

Raise money for your favorite charity or school just by searching the  
Internet with GoodSearch - www.goodsearch.com - powered by Yahoo!