Estou utilizando o NetBeans, coloquei um JFormattedTextField no meu frame e selecionei a formatação de moeda, o código está assim:
ftValor = new javax.swing.JFormattedTextField();
ftValor.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(java.text.NumberFormat.getCurrencyInstance(new Locale("pt","BR")))));
ftValor.setText(null);
ftValor.setValue(0);
ftValor.setValue(0);