Login  Register

Re: Attempting to modify the ImageJ user interface to create a "mini application"

Posted by jmutterer on Jan 23, 2019; 8:38am
URL: http://imagej.273.s1.nabble.com/Attempting-to-modify-the-ImageJ-user-interface-to-create-a-mini-application-tp5021669p5021694.html

Hi Grayson,
You could also consider using an ActionBar that would expose only buttons
useful for your user. It has a mini app mode using the <main> tag that
hides the ImageJ tool bar.

Here's an example code for a mini app. Save this in Plugins>ActionBar, and
launch it at statup using run("mini app"); in Options>Startup...

// Action Bar description file :mini_app
run("Action Bar","/plugins/ActionBar/mini_app.ijm");
exit;

<main>

<DnDAction>
file=getArgument();
open(file);
run("8-bit");
</DnDAction>

<line>
<button>
label=Toggle IJ
icon=noicon
arg=<hide>

<button>
label=hello
icon=noicon
arg=<macro>
showMessage("hello");
</macro>
</line>

Jerome.


Le ven. 18 janv. 2019 à 23:35, Grayson Harrington <
[hidden email]> a écrit :

> Hello all,
>
> I have a plugin that needs to be used by people that aren't familiar with
> ImageJ where I work. I made an AutoRun macro that opens the plugin when
> ImageJ is first opened, but I would also like to somehow have the main
> ImageJ window disabled so only the plugin is visible and able to be
> interacted with.
>
> I have the ImageJ source code visible on Eclipse from following this
> <https://imagej.net/Developing_ImageJ_in_Eclipse> tutorial, but I don't
> have access to the other classes that are listed in the maven dependencies,
> such as the awt and swing classes. I think I need to use awt or swing to
> modify the UI, but honestly, I'm not sure where to look/what to do to move
> forward.
>
> I would really appreciate some advice on how I can progress on the project!
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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