Hi,
On Sat, 7 Apr 2012, ashishdonvir wrote:
> Is it possible to display the ImagePlus window, ContrastAdjuster
> window,Histogram window and some more window of imajeJ inside Jframe or
> JPanel. I couldnt find out a way of displaying it in such away that this
> ImajeJ window resides my frame so that it look like single window
> application.
In the 'applet' branch of the ImageJA fork you will find that support for
MDI has been added. That might get you started with what you want,
although it is still using the AWT framework, not Swing.
In general, however, it is very hard to make ImageJ's GUI classes and
Swing work together; Grant Harris has made progress to that end by
converting all of ImageJ to Swing. The problem was that external plugins
are bound to use ImageJ1's GUI classes which are bound to AWT. The project
was called "ImageJX" but I cannot find the source code for that right now,
though. It was based on an older version of ImageJ1, so if you want to go
that route, you might need to put in a lot of work to rebase those changes
on top of current ImageJ1.
In the near future, however, I would recommend to have a look at ImageJ2
(
http://github.com/imagej/imagej) which was designed to be mostly
UI-agnostic, with UI code only in specific backends. Such backends already
exist for several toolkits, including Swing. Since most of the work is
done to implement what you need on top of Swing, and since it is
well-maintained (as Grant moved on from ImageX to ImageJ2), it seems to me
as the most viable option.
Ciao,
Johannes