Currency fields?


what is the recommended way to handle currency input in TextFields?
I’d like to have the currency symbol and punctuation automatically handled by the component…


Use a normal TextField, but apply a
for it. You need to implement your own custom converter that does parses the string value containing the value and the currency into a numeric value (or Money object, or whatever datatype you are using).

Just wondering, why isn’t there a default converter for currency?

Probably because there isn’t a built-in datatype in Java that represents money. Money is typically represented by a combination of BigDecimal and Currency.