Login  Register

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

Posted by Wayne Rasband-2 on Jan 19, 2019; 12:34am
URL: http://imagej.273.s1.nabble.com/Attempting-to-modify-the-ImageJ-user-interface-to-create-a-mini-application-tp5021669p5021670.html

> On Jan 18, 2019, at 2:05 PM, Grayson Harrington <[hidden email]> wrote:
>
> 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.

You can hide the “ImageJ” window using this Java code

  IJ.getInstance().setVisible(false);

or this macro code

   eval(“js”,”IJ.getInstance().setVisible(false)”);

-wayne


> 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