Simple way to "print" to a JTextArea; just say
PrintStream out = new PrintStream(new TextAreaOutputStream(myTextArea));
Then out.println() et all will all appear in the TextArea.
Simple way to "print" to a JTextArea; just say
PrintWriter out = new PrintWriter(new TextAreaWriter(myTextArea));
Then out.println() et all will all appear in the TextArea.