Login  Register

ImageJ windows Inside Jpanel or JFrane

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

ImageJ windows Inside Jpanel or JFrane

ashishdonvir
12 posts
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.

could any one suggest me the way how could i achieve my purpose
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: ImageJ windows Inside Jpanel or JFrane

Senseney, Justin (NIH/CIT) [E]
15 posts
Did you try extending ImageWindow to create your own Window?  You could then place any other components within your custom ImageWindow frame, while still having access to the parent's ImagePlus.

-Justin
________________________________________
From: ashishdonvir [[hidden email]]
Sent: Saturday, April 07, 2012 10:16 AM
To: List IMAGEJ
Subject: ImageJ windows Inside Jpanel or JFrane

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.

could any one suggest me the way how could i achieve my purpose

--
View this message in context: http://imagej.1557.n6.nabble.com/ImageJ-windows-Inside-Jpanel-or-JFrane-tp4695276p4695276.html
Sent from the ImageJ mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: ImageJ windows Inside Jpanel or JFrane

dscho
1631 posts
In reply to this post by ashishdonvir
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
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: ImageJ windows Inside Jpanel or JFrane

johnnydepp
4 posts
If I can not use Java Swing library then this makes no sense.
Possible that there is a library documentation done well?