The PrintStream class you create gets the String printed by the print/println methods.
You can then append that String to the textarea.
Type: Posts; User: Norm
The PrintStream class you create gets the String printed by the print/println methods.
You can then append that String to the textarea.
TextPanes are much more complicated than textfields. I'd change to a textfield.
If you want to trap System.out.println() using setOut() you need to read the API doc for setOut() and find what...
There is a method in the System class that will change the class of the out variable. You could change that to a class of yours that would append what was written to System.out to the text area.
What are your questions or problems now?
I don't see any GUI code in what you have posted. Have you looked at the tutorial to see how to write some:
Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)