@Override
  public boolean shouldYieldFocus(JComponent input) {
    if (input instanceof JFormattedTextField ftf) {
      final JFormattedTextField.AbstractFormatter formatter = ftf.getFormatter();
      if (formatter != null) {
        try {
          formatter.stringToValue(ftf.getText());
        } catch (final ParseException e) {
          //SwingUtilities.invokeLater(new Runnable() {
          //  public void run() {
          //    Messages.showErrorDialog(e.getMessage(), "Malformed Naming Pattern");
          //  }
          //});
        }
      }
    }
    return true;
  }
@Override
  public boolean shouldYieldFocus(JComponent input)