http://imagej.273.s1.nabble.com/Attempting-to-modify-the-ImageJ-user-interface-to-create-a-mini-application-tp5021669p5021677.html
Thank you for the advice. I changed the double quotes and when I started
and the main ImageJ window is still visible. Has anyone seen this before or
> Hi Grayson,
>
> probably you need to fix the double quotes. Some text editors change them
> into different ones, which are not understood by the macro interpreter.
>
> macro "AutoRun" {
> eval("js","IJ.getInstance().setVisible(false)");
> run ("APC Rating");
> }
>
> IHTH
> Giovanni
>
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
> Grayson Harrington
> Sent: Montag, 21. Januar 2019 14:59
> To:
[hidden email]
> Subject: Re: Attempting to modify the ImageJ user interface to create a
> "mini application"
>
> Hi Wayne,
>
> Thank you for getting back to me with those tips. I tried using the macro
> code solution and inserted the method you should me into my AutoRun macro
> that's in the StartupMacros.txt file.
>
> Here is the macro that I have:
>
> macro "AutoRun" {
> eval(“js”,”IJ.getInstance().setVisible(false)”);
> run ("APC Rating");
> }
>
> Where "APC Rating" is the plugin that I mentioned in my first post.
>
> Below is the Macro Error that shows up when I start ImageJ:
> [image: Macro Error.PNG]
>
> It appears to ot recognize "js". Do you know why this is happening?
>
> Thank you,
> Grayson
>
> On Fri, Jan 18, 2019 at 6:35 PM Wayne Rasband <
[hidden email]> wrote:
>
> > > 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> >
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>