* needed (currently limited to six digits to the
* right of the decimal point).
*/
textField = new TextField("field", Double.class) {
public org.apache.wicket.util.convert.IConverter getConverter(Class type) {
DoubleConverter converter = (DoubleConverter) DoubleConverter.INSTANCE;
java.text.NumberFormat numberFormat = converter.getNumberFormat(getLocale());
java.text.DecimalFormat decimalFormat = (java.text.DecimalFormat)numberFormat;
decimalFormat.applyPattern("###,##0.######");
converter.setNumberFormat(getLocale(), decimalFormat);
return converter;
};
};
}