ImageJA running my plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ImageJA running my plugin

Jon Harman
Hi,

I have just discovered ImageJA.  It looks like just what I need. I want
to use it to open an image on my website inside of my ImageJ plugin.
I put my plugin into ij/plugin and compiled.  My plugin wants to open a
panel underneath the image.  This fails.  If I use the plugin to
directly enhance the image without adding the panel below it works fine.

Is there any way to allow my plugin to open a panel below the image?
Jon
Reply | Threaded
Open this post in threaded view
|

Re: ImageJA running my plugin

dscho
Hi,

On Thu, 14 Feb 2008, Jon Harman wrote:

> I have just discovered ImageJA.  It looks like just what I need. I want
> to use it to open an image on my website inside of my ImageJ plugin. I
> put my plugin into ij/plugin and compiled.  My plugin wants to open a
> panel underneath the image.  This fails.

You might want to add the component to the Applet obtained
via IJ.getApplet().  The Applet class inherits from the Panel class, so
you can do virtually anything that you can do with a Panel.

However, I have no idea if you can add both an ImageCanvas and a Panel as
components in an Applet; you'll have to try that ;-)

Hth,
Dscho