Do you really want to let the user input the currency with a thousands separator? At least to all applications I have seen and developed so far, this is very uncommon.
Usually you only use it for display purposes, not for input. So the user would enter 1000
and you'll display it as 1,000.00
by formatting the value by NumberFormat.format()
.
If you really want the input like that, it should be treated as a String
and then be parsed by NumberFormat.parse()
as shown here.