public void removeAllDocumentListeners() {
		try {
			getDocument().remove(0, getDocument().getLength());
		} catch (BadLocationException e) {
			e.printStackTrace();
		}
		if (getDocument() instanceof AbstractDocument) {
			DocumentListener[] dl = ((AbstractDocument) getDocument()).getDocumentListeners();
			if (dl != null) {
				for (DocumentListener l : dl)
					getDocument().removeDocumentListener(l);
			}
		}
	}