You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue was recently brought up on the forum... currently, if for example, you want to display the a default value of 0.0178 in the dialog for a user…
"The spinner created in SwingNumberWidget is using the default DecimalFormat which apparently has a maximum of three decimal places.
You can somehow work around the issue by using a slider or scroll bar (within a defined range). But while the actual values can contain more decimal places (as shown by the println statement, there’s still no visual feedback inside the spinner text field:
There’s no parameter attribute for number formats, but we could maybe use the style attribute for this; in any case we should try to guess a suitable spinner number format from the combination of min, max and stepSize, or from the default value…"
Activity
BoudewijnvanLangerak commentedon Oct 16, 2020
Added code for formatting numerical values in the @parameter annotation.
Code in the pullrequests:
scijava/scijava-common#399
#50