Re: GenericDialog addStringField addToSameRow addMessage not widening

Posted by Wayne Rasband-2 on
URL: http://imagej.273.s1.nabble.com/GenericDialog-addStringField-addToSameRow-addMessage-not-widening-tp5020545p5020556.html

> On Apr 22, 2018, at 3:56 PM, Fred Damen <[hidden email]> wrote:
>
> Greetings,
>
> When adding a message following a string field the dialog is not widened to
> encompass the additional string, see below, albeit, works with a checkbox.

This bug is fixed in the latest ImageJ daily build (1.52b2).

-wayne


> Thanks,
>
> Fred
>
>
> import ij.*;
> import ij.process.*;
> import ij.gui.*;
> import java.awt.*;
> import ij.plugin.*;
> import ij.plugin.frame.*;
>
> public class tmp_Plugin implements PlugIn {
>
> public void run(String arg) {
>
> {
>   GenericDialog gd = new GenericDialog("Title");
>   gd.addCheckbox("param",false);
>   gd.addToSameRow();
>   gd.addMessage("See This");
>   gd.showDialog();
> }
> {
>   GenericDialog gd = new GenericDialog("Title");
>   gd.addStringField("param", "");
>   gd.addToSameRow();
>   gd.addMessage("See This");
>   gd.showDialog();
> }
>
> }
> }

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