checkValidInput();
    public void insertString(DocumentFilter.FilterBypass bypass, int offset,                              String text, AttributeSet attributes)      throws BadLocationException    {      super.insertString(bypass, offset, text, attributes);      commitIfAllowed();    }