Re: Swing Java components in ImageJ plugin frames?
Posted by dscho on May 11, 2009; 11:32pm
URL: http://imagej.273.s1.nabble.com/Swing-Java-components-in-ImageJ-plugin-frames-tp3692563p3692567.html
Hi,
On Mon, 11 May 2009, Bill Mohler wrote:
> I'm confused by what's "allowed" or doable in writing code for ImageJ
> plugins.
Anything.
> I am interested in adding some JSpinner components to my plugin frame,
> to save space instead of using sliders and to allow text input from the
> user as a shortcut.
Quite possible.
> I know that JSpinner is a Swing component, and I recall hearing/reading
> that ImageJ was not designed to use Swing. Does this mean that the
> Swing libraries are not included in the bundled version of Java that
> comes with ImageJ? Or is this just a limitation on what classes are
> used in the base code of ImageJ?...
The problem is that you cannot add an ImageCanvas to any Swing layout.
That's where the pain starts...
Ciao,
Dscho