Posted by
Ignacio Arganda-Carreras on
Dec 04, 2009; 5:08pm
URL: http://imagej.273.s1.nabble.com/ImageJ-development-involvement-contributions-tp3690030p3690080.html
Hello Raymond,
AWT-Swing coexistence is possible in the latest versions of Java, although
it has some problems on some operative systems.
If you have a look at the SIOX plugin (
http://pacific.mpi-cbg.de/wiki/index.php/SIOX) you will see an example.
Everything but the ImageWindow is a Swing component. If you try to run it in
a Linux machine, depending on the Compiz, some of the components will be
repainted correctly and some will not.
However I also think this is the best intermediate solution to start
migrating the GUI, good luck with that!!!!
ignacio
On Fri, Dec 4, 2009 at 11:00 AM, Raymond Martin <
[hidden email]> wrote:
> Hi,
>
> I have done a little research concerning conversion of ImageJ from AWT to
> Swing, after my initial hacking of the code.
>
> What I have found so far is that some other Java-based imaging offerings do
> not
> actual replace AWT for the Canvas part. They actually extend it by
> inheriting
> from Canvas. This is done in the Java Advanced Imaging (JAI) library and
> JadeDisplay (High-performance Java image display component from the Jet
> Propulsion Laboratory). In this way, Canvas is augmented with additional
> features, better performance, etc.
>
> Thus, Swing for the main GUI parts end up coexisting with AWT for the
> image processing, display, and so forth. And plugins, as a result, will not
> be broken with this type of implementation.
>
> I will keep looking. I would not be surprised if other viable solutions
> exist
> also.
>
> Cheers,
>
> Raymond
>
> JAI:
https://jai.dev.java.net/> JadeDisplay:
http://www.openchannelfoundation.org/projects/jadedisplay>
--
Ignacio Arganda-Carreras, Ph.D.
Seung's lab, 46-5065
Department of Brain and Cognitive Sciences
Massachusetts Institute of Technology
43 Vassar St.
Cambridge, MA 02139
USA
Phone: (001) 617-452-4976
Website:
http://bioweb.cnb.csic.es/~iarganda/index_EN.html