pessoal alguem ai sabe o motivo desse erro ?
public void fmoeda(final JTextField formatomoeda){
formatomoeda.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
double x = Double.parseDouble(formatomoeda.getText());
DecimalFormat moneyFormat = new DecimalFormat("#,###,###.00");
moneyFormat.setMaximumFractionDigits(3);
moneyFormat.setMinimumFractionDigits(3);
formatomoeda.setText(moneyFormat.format(x));
}
});
}