Login  Register

Start ImageJ headless

Posted by Daniel Senff on May 15, 2009; 7:58am
URL: http://imagej.273.s1.nabble.com/Start-ImageJ-headless-tp3692517.html

Hello

I'm looking for a way to start ImageJ headless.
I use IJ as a library in one of my projects and I'd like to start an  
ImageJ-instance without having the Windowframe show up.
At the moment there is a show()-call for the frame in the regular  
constructor of the ImageJ-class.

Me and a few colleagues figured a hacked way by overwriting the show
()-method to start it headless. Another way was to create a new  
ImageJ-object and then after instantiation setVisable(false), which  
causes a short flicker, where the window is displayed.
However I would much rather see a clean way introduced into ImageJ.
For example a constructor with a boolean parameter to say whether or  
not the frame should be displayed instantly.

Could this be introduced in a future version? Thanks for your attention.

Daniel