public void insertString( int offs, String str, AttributeSet a ) throws BadLocationException {
		if ( str == null ) return;

		boolean proceed = true;

		if ( dontCheck == false ) {
			String tmp = super.getText(0, offs) + str + (super.getLength()>offs ? super.getText(offs,super.getLength()-offs) : "");
			Matcher m = p.matcher(tmp);
			proceed = m.matches();
		}

		if ( proceed == true ) super.insertString( offs, str, a );
	}