Login  Register

Re: How to run G. Landini's Align RGB planes in Fiji?

Posted by lechristophe on May 02, 2013; 8:58am
URL: http://imagej.273.s1.nabble.com/How-to-run-G-Landini-s-Align-RGB-planes-in-Fiji-tp5002886p5002887.html

Hi again,

I just figured out that adding an import for Textfield at the beginning of
the Align RGB Planes plugin makes it work again in Fiji (import
java.awt.TextField;)

Is it an exemple of the inconsistency between Fiji and ImageJ default
import that we discussed previously (
https://groups.google.com/group/fiji-devel/tree/browse_frm/month/2011-11/e7d7d9d53be5f206
)?

Thanks for your advices,

Christophe




On Thu, May 2, 2013 at 10:47 AM, Christophe Leterrier <
[hidden email]> wrote:

> HI,
>
> I'd like to use the Align RGB Planes plugin from Gabriel Landini in Fiji.
> I downloaded the plugin from Fiji's wiki (http://fiji.sc/Align_RGB_planes),
> unzipped the compressed file and put both files (.class and .java) in a
> subfolder of the Plugins folder.
>
> When attempting to run it on an RGB image I get the following errors:
>
>
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:198: cannot find symbol
> symbol  : constructor TextField(java.lang.String,int)
> location: class TextField
> txtpar1 = new TextField(""+par1, 3);
>           ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:199: cannot find symbol
> symbol  : constructor TextField(java.lang.String,int)
> location: class TextField
>  txtpar2 = new TextField(""+par2, 3);
>           ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:200: cannot find symbol
> symbol  : constructor TextField(java.lang.String,int)
> location: class TextField
> txtpar3 = new TextField(""+par3, 3);
>           ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:223:
> addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
> Align_RGB_planes cannot be applied to
> (java.awt.Panel,int,int,int,int,int,TextField)
>  addComponent(pnMain, 1, 1, 1, 1, 3, txtpar1);
> ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:235:
> addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
> Align_RGB_planes cannot be applied to
> (java.awt.Panel,int,int,int,int,int,TextField)
>  addComponent(pnMain, 8, 1, 1, 1, 3, txtpar2);
> ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:242:
> addComponent(java.awt.Panel,int,int,int,int,int,java.awt.Component) in
> Align_RGB_planes cannot be applied to
> (java.awt.Panel,int,int,int,int,int,TextField)
>  addComponent(pnMain, 10, 1, 1, 1, 3, txtpar3);
> ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:276: cannot find symbol
> symbol  : method addActionListener(Align_RGB_planes)
> location: class TextField
> txtpar2.addActionListener(this);
>        ^
> /Users/christo/Travail/Labo/Processing/Fiji_current/Fiji.app/plugins/added
> plugins/Align_RGB_planes.java:280: cannot find symbol
> symbol  : method addActionListener(Align_RGB_planes)
> location: class TextField
>  txtpar3.addActionListener(this);
>        ^
> 8 errors
>
>
> What's wrong? I have the impression that Fiji doesn't like plugins that
> are not packaged as jar files anymore, because I had a problem with another
> plugin that was distributed as a .java/.class file recently and I could
> only solve it by loading the java code and making a jar file from the
> Script Editor.
>
> Thanks for your help,
>
> Christophe
>
> --
> Christophe Leterrier
> Researcher
> Axonal Domains Architecture Team
> CRN2M CNRS UMR 7286
> Aix Marseille University, France
>
>
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html