final BigDecimalField localizedCurrency = new BigDecimalField(BigDecimal.ZERO, new BigDecimal("0.01"), NumberFormat.getCurrencyInstance(Locale.UK));
final BigDecimalField promptText = new BigDecimalField();
promptText.setNumber(null);
promptText.setPromptText("Enter something");
int rowIndex = 1;
root.addRow(rowIndex++, new Label("default"), defaultSpinner);
root.addRow(rowIndex++, new Label("custom decimal format"), decimalFormat);
root.addRow(rowIndex++, new Label("percent"), percent);
root.addRow(rowIndex++, new Label("localized currency"), localizedCurrency);
final BigDecimalField disabledField = new BigDecimalField();
disabledField.setDisable(true);