This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Place a JFormattedTextField on a JPanel, add a mask. NB creates this code: try { jFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("###-####"))); } catch (java.text.ParseException ex) { ex.printStackTrace(); } After that, right click on the formatterFactory an press restore default value. NB leaves the following code: try { } catch (java.text.ParseException ex) { ex.printStackTrace(); } in the private void initComponents(), that can not be edited. So you have to open the file in a Texteditor and delete this code.
Workaround is to change the format (formatterFactory) to something else than mask first (that will remove the try/catch code), then restore default value.