-
18 Dec 2008 5:28 AM #1
NumberField with , for decimal separator
NumberField with , for decimal separator
Hello
We are french, but our application must recognize any number format. (. for english user and , for french user.)
We use the code above to configure our NumberField, but the "," is not recognized.
Is this a possibility to use "," on NumberField ?Code:texteDouble = new NumberField(); texteDouble.setFieldLabel("double"); texteDouble.setAllowBlank(false); texteDouble.setFormat(NumberFormat.getCurrencyFormat());
And more, is this a possibility to transform . (num keybord) to , on the screen ?
Thanks
Pierre
-
18 Dec 2008 7:05 AM #2
numberField.setDecimalSeparator(","); have u not checkd this?
-
18 Dec 2008 7:24 AM #3
Hello
I can't use the decimal format, or i must list all locale to set separator manualy...
I prefer to use the existent function
but no effect.Code:texteDouble.setFormat(NumberFormat.getDecimalFormat());
-
18 Dec 2008 7:31 AM #4
-
18 Dec 2008 7:35 AM #5
If I specify the format of the cell, it's to use the default local format.
Why have I to re-specify manualy the format ?
Pierre


Reply With Quote
