Login  Register

Re: Use ImageJ toolbar in Swing application

Posted by dscho on Dec 06, 2010; 8:59am
URL: http://imagej.273.s1.nabble.com/Use-ImageJ-toolbar-in-Swing-application-tp3686289p3686291.html

Hi,

On Mon, 6 Dec 2010, Curtis Rueden wrote:

>  Did you try putting "new ImageJ();" before calling IJ.getInstance()?

Or even better: call the constructor with EMBEDDED | NO_SHOW and remember
the instance right away...

        ImageJ ij = new ImageJ(EMBEDDED | NO_SHOW);
        // now do whatever you wanted to do with ij

Ciao,
Dscho