Validate/Convert a number using the current Locale()
Depending on the International setting, numbers with comma as decimal
separator may be permitted. The NumberFormat class can handle this based on
the current Locale().
NumberFormat nf = NumberFormat.getInstance();
Number n = nf.parse(((TextField)theComponent).getText());
BigDecimal aDecimal = new BigDecimal(n.doubleValue());