outputTextArea.getCaret().setVisible(true);
    private void addToTextArea(String s) {        outputTextArea.append(s);        caretPos += s.length();        outputTextArea.setCaretPosition(caretPos);        outputTextArea.repaint();    }