April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
JFormattedTextField
nCep
nMaskFormatter mask = null;
ntry {
n  mask = new MaskFormatter(“#####-###”);
n  mask.setPlaceholderCharacter('_');
n} catch (java.text.ParseException exc) {
n  ......
n}
nJFormattedTextField cep =
n    new JFormattedTextField(mask);
n
nTelefone
nmask = new MaskFormatter(“(##)####-####”);
n....
n