I dont know if this will answer your question but this code works in insert mode. As you know, there are more patterns for MaskFormatter in the JDK 1.4 API. This example would parse a telephone number.
MaskFormatter formatter = new MaskFormatter("+## (###)-######"); JFormattedTextField textField = new JFormattedTextField(formatter); Andres.
begin:vcard n:; x-mozilla-html:FALSE adr:;;;;;; version:2.1 title;quoted-printable:<HTML><BODY ><table ><tr><td colspan=3D"5"><hr/></td></tr><tr><td width=3D"2%"> =3B</td><td ><B><FONT face=3D"Arial" size=3D"-1" color=3D"#000080" >André=3Bs Esteban Ferná=3Bndez.</FONT></B></td><td width=3D"5%"> =3B</td><td ><B><FONT face=3D"Arial" size=3D"-1" color=3D"#000080">AQS (Advanced Quality Solutions)</FONT></B></td><td width=3D"2%"> =3B</td></tr><tr><td width=3D"2%"> =3B</td><td ><FONT face=3D"Arial" size=3D"-1" color=3D"#000080">Ingeniero de Software.</FONT></td><td width=3D"5%"> =3B</td><td ><FONT face=3D"Arial" size=3D"-1" color=3D"#000080">Jorge Juan 30, 6ª=3B planta.</FONT></td><td width=3D"2%"> =3B</td></tr><tr><td width=3D"2%"> =3B</td><td ><FONT face=3D"Arial" size=3D"-1" color=3D"#000080">[EMAIL PROTECTED]</FONT></td><td width=3D"5%"> =3B</td><td ><FONT face=3D"Arial" size=3D"-1" color=3D"#000080">28001 Madrid.</FONT></td><td width=3D"2%"> =3B</td></tr><tr><td width=3D"2%"> =3B</! td><td ><font size=3D"-1" color=3D"#000080" face=3D"Arial" ><U><A target=3D"_blank" href=3D"http://www.aqs.es/">http://www.aqs.es</A></U></font></td><td width=3D"5%"> =3B</td><td ><font size=3D"-1" color=3D"#000080" face=3D"Arial" >Tel. 91 578 01 27. / Fax. 91 577 76 78.</font></td><td width=3D"2%"> =3B</td></tr><tr><td colspan=3D"5"><hr/></td></tr></table></BODY></HTML> end:vcard