I do not want to give up visibility to all the data the program prints to System.out as I upgrade a linux console app to a Swing app. If I dump it to a file, I might never see something important.
Which WindowBuilder Swing widget should I use to make a System.out "console" display?
(I am using Java, Eclipse, ubuntu, Swing and WindowBuilder.)
Edit: I used jfpoilpret’s suggestion and Mohaimin’s suggestion. The result is a private static reference to a JTextArea (inside a scrollable pane inside a WindowBuilder structure). Then I use a getter method to expose the JTextArea and I invoke the getter as follows:
public static PrintWriter pw = new PrintWriter(new mySwingConsole(getter()))
where mySwingConsole is a Writer.
The answer is described in the “edit” to the question. I used jfpoilpret’s suggestion and Mohaimin’s suggestion. If jfpoilpret wants to repost his comment as an answer, I will select it.