Re: Attach a JPG in a dialog
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Dec 23, 2014; 1:54am
URL: http://imagej.273.s1.nabble.com/Attach-a-JPG-in-a-dialog-tp5011024p5011037.html
On Dec 22, 2014, at 7:24 AM, Xavier Colomé <
[hidden email]> wrote:
>
> Hello, I'm wondering if is it possible to attach an image in a dialog box,
> for example to show an explanatory instructions for the user.
>
> Is is possible?
>
> thank you so much
Upgrade to the latest ImageJ daily build (1.49o6) and you can add an image to a dialog box using the new addImage() method. Here is a JavaScript example:
img = IJ.openImage("
http://imagej.nih.gov/ij/images/clown.jpg");
gd = new GenericDialog("Dialog with Image");
gd.addImage(img);
gd.showDialog();
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html