关于MaskFormatter的错误
程序代码:
import javax.swing.text.*;
MaskFormatter formatter = new MaskFormatter("########");
JFormattedTextField aaa = new JFormattedTextField(formatter);
位置:new处报错
报告错误:
unreported exception java.text.ParseException; must be caught or declared to be thrown at line 21, column 29
求助!