3
I’m using it as follows, but it doesn’t work because of the compiler using things from javax.swing.text.Defaultformatter.
public string formatar(String text, String mask) throws ParseException {
return new MaskFormatter(mask).valueToString(text);
}
I couldn’t find a solution in the available documentation