Pessoal,
Tô usando o seguinte:
zipField = new JFormattedTextField(
createFormatter("#####"));
…
protected MaskFormatter createFormatter(String s) {
MaskFormatter formatter = null;
try {
formatter = new MaskFormatter(s);
} catch (java.text.ParseException exc) {
System.err.println("formatter is bad: " + exc.getMessage());
System.exit(-1);
}
return formatter;
}
O problema ocorre depois de entrar com um valor válido. Nao consigo deixar o campo vazio. So é possivel alterar com outro valor válido.
E agora?
[]s
F. L