jft1 = new JFormattedTextField(nb1);
jft1.setBounds(300, 60, 200, 30);
add(jft1);
private JFormattedTextField amountField;
private NumberFormat amountFormat;
amountField = new JFormattedTextField(amountFormat);
amountField.setValue(new Double(amount));
amountField.setColumns(10);
JPanel fieldPane = new JPanel(new GridLayout(0,1));
fieldPane.add(amountField);
amountFormat = NumberFormat.getNumberInstance()