ImageJ applet parameters - (auto)run commands

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

ImageJ applet parameters - (auto)run commands

zilu_2010
Hi everyone,
I have a newbie question about ImageJ applet.
I'm working on an ImageJ signed applet and my objective is to pass some links to images (already working) and some parameters that will start automatically the execution of some macros loaded from my StartupMacros.txt.
I created a macro called "Montage From Set" which take the urls passed to the applet, put them into a stack and execute a montage. This macro works if I use the button on ImageJ bar, but if I try to pass this command as parameter in the html page, it doesn't work.

I'm passing some urls to images in this form (inside "applet" tag, obviously):
<param name=url1 value='http://someserver/someimage1.jpg'>
<param name=url2 value='http://someserver/someimage2.jpg'>
[...]
<param name=url9 value='http://someserver/someimage9.jpg'>

And then

<param name=run value='Montage From Set'>

The result is that ImageJ applet opens, it also opens correctly all images, but it doesn't execute the macro. I'm pretty sure that this is a syntaxis error, but I need help to find the right syntaxis or (even better) a manual where this case is well explained.
Hope that someone can give me a hand, thanks in advance,

David
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ applet parameters - (auto)run commands

wjbeaver
hey David,

Autorun of macros does not work with images on an applet. There seems to be a focus problem, the macro is run but even though you see the image it does not have focus until it is selected. So the macro fails. One reason is that the image is placed in the applet ImageCanvas instead of in an imageWindow like the non-applet version. The current ImageJA project does not seem to doing anything but wrapping the applet class around each new version of ImageJ. There are lots of other issues with ImageJ being an applet. Always test your macro on a non-applet version, if it works on that and not the applet then there is a problem with the applet.