/** * simple TextArea that always scrolls to the bottom. Also creates an out and err PrintWriter so * that you can redirect stdout/stderr to these streams, using the System.setOut/setErr methods. */ public ReplPane(ReplDocument document) { super(document); this.document = document; document.pane = this; document.paneCount++; addKeyListener(this); addFocusListener(document); setCaretPosition(document.outputMark); }