Login  Register

Re: Alter dialog fields with DialogListener

Posted by Michael Doube on Apr 01, 2010; 7:17pm
URL: http://imagej.273.s1.nabble.com/Alter-dialog-fields-with-DialogListener-tp3688687p3688691.html

> changing the contents of the numeric field is not so difficult as it  
> may seem,

Correct; already done.

> For the units - hm, I fear that this will be more complicated. In  
> GenericDialog you can get no reference to the Label where the units  
> are displayed. You would have to iterate through the components of  
> the GenericDialog (gd.getComponents(), a method of the Container  
> class) and find the correct one (maybe it is the one after the  
> TextField that you want to modify, but I am not sure).

Well, that is at least a place to start, thank you.

Michael