posted 18 years ago
If I have an existing JFormattedTextField, how would I apply a new Format to it?
if I am creating a new one, I can say:
txtZipCode = new JFormattedTextField(new MaskFormatter("#####"));
but if txtZipCode already exists,
is there no method to set the format?
txtZipCode.setFormat(new MaskFormatter("#####"));