Login  Register

Re: GenericDialog element focus

Posted by Wayne Rasband on Mar 15, 2009; 3:46am
URL: http://imagej.273.s1.nabble.com/cell-by-cell-local-thickness-tp3693294p3693303.html

> Hi list,
>
> I already noticed some time ago, that the GenericDialog seemingly  
> always
> puts the initial input focus on th first "Numeric field", not on  
> the "top
> element" in the dialog. This happens
> even if this input field is "disabled" via a DialogListener due to  
> another
> checkbox option. This causes some confusion for the user of my plugin.
>
> What is the easiest way to change this or could this even be  
> considered a
> "bug"?
>
> I put a simple example on
>
> http://joachim-wesner.net/tmp/WrongFocus.jpg
>
> the initial focus after showDialog() is on the value "6.2832...",  
> even if
> it´s diabled, because the user has not selected "User value" in the  
> Choices
> above on an earlier run (saved in preferences)!
>
> Thanks for any hint.

This is a bug that is fixed in the 1.42l daily build. You can upgrade  
by using the Help>Update ImageJ command and selecting "daily build"  
from the drop down menu.

-wayne