Advanced java topics
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6 How To Ask Questions How To Answer Questions
Rob Spoor wrote:PrintStream oldOut = System.out; PrintStream printStream = new PrintStream(new OutputStream() { // override write methods to write to the JTextArea / JTextPane }); System.setOut(printStream);Note that you will need to store the old version of System.out (line 1 in my example), or you will never be able to reset it to the default again.