Hi Albert,
As I see it all the functionality is not available if the canvas is not on an ImageWindow, eg. I cannot add the window to the list of images. Also unless I'm doing somthing wrong I cannot edit the picture unless it is on an ImageWindow. I'm I right?
Thanks
Nick
-----Original Message-----
From: ImageJ Interest Group on behalf of Albert Cardona
Sent: Fri 12/22/2006 7:36 PM
To:
[hidden email]
Cc:
Subject: Re: Imagewindow swing controls?
All the functionality you want is in the ImageCanvas, not the
ImageWindow (which contains an ImageCanvas, by the way). Just embed the
ImageCanvas in a JPanel and feed that into your JFrame's content pane.
Be aware that the ImageCanvas, as an awt component, is heavy-weight and
will overlay any overhanging panes such as those from popup menus. Be
sure to set those as heavy weight.
In any case, the java.awt.Window and java.awt.Frame would serve your
purposes just as well as their swing counterparts. I would explore those
first.
Search the archives for many entries on this topic.
Albert