This is the only way I know (better: I learned from Wiki/Docs/Examples) on how to use MaskConverter:

TextField zipCode = new TextField("zipCode") {
public IConverter getConverter() {
MaskFormatter zipFormat = null;
try {
zipFormat = new MaskFormatter("#####-###"); // Brazillian format
} catch(Exception e) {} // never throws
return new UncheckedMaskConverter(zipFormat);
}
};

Isn't a better way to to this?

--
Bruno Borges
[EMAIL PROTECTED]
Sun Certified Java Programmer for 1.4
Sun Certified Web Component Developer for 1.4

Reply via email to