I'm using NumberFormat.getDecimalFormat() which does almost what I
want. All I want to do is remove the leading US from the formatting,
I want to keep everything else including the $ sign.
How can I do this? It isn't clear to me how these casn be customized,
can someone point me to a sample or
I think you meant to say getCurrencyFormat().
You'll want to read these pages:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/i18n/client/NumberFormat.html
http://code.google.com/webtoolkit/doc/latest/DevGuideI18nLocale.html
And play with this sample:
Your right, I use both...copied the wrong example. I followed the
directions...still doesn't work.
Here is what the GWT docs say to do:
// Currency
fmt = NumberFormat.getCurrencyFormat();
formatted = fmt.format(123456.7899);
// prints US$123,456.79 in the default locale or $123,456.79 in the