"setText("")";
MaskFormatter ftmConv = null;
try {
ftmConv = new MaskFormatter("EM-####/##");
} catch (ParseException ex) {
ex.printStackTrace();
}
try{
javax.swing.text.MaskFormatter format_textFieldConv = new javax.swing.text.MaskFormatter("EM-####/##");
tfCodigo = new javax.swing.JFormattedTextField(format_textFieldConv);
}catch (Exception e){}
fmtConv.setFormatterFactory(new DefaultFormatterFactory(ftmConv, ftmConv));
Se alguém souber o que está acontecendo, por favor, me ajude... :cry: