Hello I'd like to use a mask for a JFormattedTextField
this way:
MaskFormatter mask = new MaskFormatter("AA AAAA AAAA");
myField = new JFormattedTextField(mask);
but I want to be able to type variable number of characters, e.g.:
aa 11
4a 1125 4
etc.
Is there any simple way to do this, instead of extending maskformatter
or writing my own class?
Thank u