Re: Imagewindow swing controls?
Posted by Albert Cardona on Dec 22, 2006; 10:36am
URL: http://imagej.273.s1.nabble.com/Imagewindow-swing-controls-tp3700736p3700737.html
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