system-print(ln) on jtextarea or jpanel
In a method I have a lot of System.out.print(ln) and System.err.print(ln) let's say in Teach.java file.
Now I make a window for Control.java let's say Window.java so a user can use Teach.java more grafically.
The problem is how to make System-print(ln) code lines in Teach.java print on the Window.java JtextArea or JPanel? - not in the console
If i am going to save all System-print(ln) into a String first then print on JtextArea or JPanel later, it is gonne be tiresome.