public void append(String s, JTextPane txtArea) {
		try {
			Document doc = txtArea.getDocument();
			doc.insertString(doc.getLength(), s, null);
			setEndline(txtArea);
		} catch (BadLocationException exc) {
			exc.printStackTrace();
		}
	}