Re: ImageJ development involvement/contributions
Posted by
dscho on
Dec 03, 2009; 4:17pm
URL: http://imagej.273.s1.nabble.com/ImageJ-development-involvement-contributions-tp3690030p3690093.html
Hi,
On Thu, 3 Dec 2009, Raymond Martin wrote:
> > > From what you have written, I will be sure to make my code backwards
> > > compatible with AWT plugins, as well as providing an upgraded Swing
> > > UI and facility for newer Swing plugins. It is quite doable in my
> > > opinion.
> >
> > There is a real problem in that ImagePlus' getCanvas() returns an
> > instance of ImageCanvas, which extends an AWT canvas. And this is
> > just the beginning of the dependency on AWT.
>
> Yes, I encountered this during my preliminary hacking of ImageJ. In the
> end, it is no problem at all. My version compiles, runs and opens images
> correctly using Swing replacements despite ImageCanvas still inheriting
> from an AWT Canvas.
Do you mean to say that ImageCanvas extends java.awt.Canvas, not
javax.swing.JPanel? Then I understand why it works, but have to caution
that things do not work flawlessly everywhere. At least in one instance,
AWT inside a Swing container did not work as expected: Linux with the
default window manager of GNOME (the repainting was sometimes correct,
sometimes not).
Ciao,
Johannes