Login  Register

Re: Weird behavior with GenericDialog.addImage

Posted by CARL Philippe (LBP) on Jul 30, 2020; 10:39am
URL: http://imagej.273.s1.nabble.com/Weird-behavior-with-GenericDialog-addImage-tp5023785p5023787.html

Dear Gabriel,
Thanks a lot for your replay, nevertheless I'm not really sure what you want to point me out here.
Thus let me go slightly deeper into my description.
I'm playing around with an "About..." window I would like to create within a PlugIn.
So I have:
        public void run(String arg)
        {
                arg = "about"; // I have temporary added this line for easy testing of my showAbout() method.
                if (arg.equals("about"))
                {
                        showAbout();
                        return;
                }
on one side, and on the other side:
        public void showAbout()
        {
                ...
                gd = new GenericDialog("My_plygin - About...");
                ...
                gd.addImage(imp);
                ...
                gd.showDialog();
And for compiling (using the last daily build version of ImageJ) I use Plugins>Compile_and_run...
Did I answer your reply?
My best regards,
Philippe

----- Mail original -----
De: "Gabriel Landini" <[hidden email]>
À: "imagej" <[hidden email]>
Envoyé: Jeudi 30 Juillet 2020 12:05:56
Objet: Re: Weird behavior with GenericDialog.addImage

On Thursday, 30 July 2020 10:29:36 BST you wrote:
> Dear all (probably Wayne),
> When I'm compiling a GenericDialog with an addImage method loading a picture
> of a given size and I decrease later on the picture size, the method often
> "reme> mbers" the previously compiled size.

Strange things happen, but a newly compiled program remembering a past life
sounds like impossible :-)

Do you Refresh Menus each time you compile the code?
You might not be running the latest compiled version but one held in memory if
you call it from the plugins menu and did not refresh the menus.

Cheers

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html