Login  Register

Use ImageJ toolbar in Swing application

Posted by reji on Nov 22, 2010; 10:26pm
URL: http://imagej.273.s1.nabble.com/Use-ImageJ-toolbar-in-Swing-application-tp3686289.html

Hi,

I am trying to add ImageJ toolbar to my Swing application. I tried the following after changing the visibility of toolbar.

JPanel jp = new JPanel();
jp.add(IJ.getInstance().toolbar);

But this is giving me NullPointerException.  Any help would be highly appreciated.

thanks,
Reji