public void addToOutput(String message) {
		try {
			Element p = houtput.getParagraphElement(houtput.getLength());
			houtput.insertAfterEnd(p, "<div align=left> "+message+" </div>");
		} catch (NullPointerException e) {
			e.printStackTrace();
		} catch (BadLocationException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		if (client.scrollflag) {
			output.setCaretPosition(output.getDocument().getLength());
		}
	}