public void addMessage(String msg) {
		try {
			this.kit.insertHTML(doc, doc.getLength(), msg, 0, 0, null);
		} catch (BadLocationException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}