code: @Override
  	public void remove(int offset, int length) throws BadLocationException
  	{
  		int currentLength = getLength();
  		String currentContent = getText(0, currentLength);
  		String before = currentContent.substring(0, offset);
  		String after = currentContent.substring(length + offset, currentLength);
  		String newValue = before + after;
  		try
  		{
  			validate(newValue);
  			super.remove(offset, length);
  		}
  		catch (Exception exception)
  		{
  			Toolkit.getDefaultToolkit().beep();
  		}
  	}
docs: {@inheritDoc}