On Tue, 2004-07-27 at 09:16, Gunter D'Hondt wrote:
> Indeed, my mistake; but still got some decimal formatting that doesn't
> work properly:
> 
> 1) 
> input=""
> output should be "0"
> pattern= "#0"
>         -> result is ""

My guess is (not sure) that the binding sets null on the widget for an
empty input string.

> 
> 2) 
> input="0.0"
> output should be "0.00"
> pattern= "#0.00"
>         -> result is "0"
> 
> 3) 
> input="30000.0"
> output should be "30000"
> pattern= "#0"
>         -> result is "30,000" ( I assume this has to be with the
> regional settings of my machine)

The binding currently uses a hardcoded locale, which is Locale.US, so
that explains the comma as group symbol.

I don't know why the patterns are not working, I'd need to try that out.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]                          [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to