Re: Floating window through Plugins
Posted by Gabriel Landini on Aug 20, 2009; 6:21pm
URL: http://imagej.273.s1.nabble.com/Floating-window-through-Plugins-tp3691435p3691437.html
On Thursday 20 August 2009, Dimitri Vanhecke wrote:
> I produced a plugin that reads a file, puts the metadata in a dialogbox
> and opens the image (I want to have specific metadata on my screen all
> the time, and not "hidden" in the Image>Info menu).
> Unfortunately, I did not find a way to make the dialog "floating", i.e.,
> I have to close it in order to access other windows in ImageJ (including
> my image). How can I make a GenericDialog floating?
You can't. These are modal dialogs (so they stop what you are doing).
Have a look at the source code of other plugins that have non-modal dialogs
and work from there.
However, wouldn't it be easier to just print the metadata to the log window?
Or print this info into a new text window?
Cheers
G.