What Locale is your application using? By default getLocale() will return the preferred locale of the user using the application. If the user is using a locale which uses dots instead of commas to format decimal values then dots will be used. If you want change the locale you should call Application.setLocale(…) with your preferred locale, in this case a european locale.
If you only want to change the locale for the table fields and not for the whole application you could replace the getLocale() call with a specific locale which uses the comma instead of a dot (here I use a finnish locale):
Edit: A small note, the pattern should be “#.00”. A comma in the pattern represents the grouping separator while the dot represents the decimal separator so you cannot just replace the dot with the comma. The locale specifies which kind of separator is used, not the pattern.
I apply the format property value as you say and it works perfect (i’m doing it to format Double numbers), but after this I add a generated column, and the formatting doesn’t apply to it…how can I recall or somtheing the formatting?
Your tip gave me a good solution to problems I have with European values in java.
But what have I do when user change the value? In this case I get the decimal point instead the decimal comma (see screenshot in Attachment)?
It’s the first time I use attachments in this tool. So I hope it works.
Have you got some good tips to me?
Walter 12473.doc (45 KB)