I do not want to give up visibility to all the data that the program prints on System.out when I update the linux console application in the Swing application. If I delete it to a file, I may never see something important.
Which WindowBuilder Swing widget should be used to create the "console" screen of System.out?
(I use Java, Eclipse, ubuntu, Swing, and WindowBuilder.)
Edit: I used the jfpoilpret clause and the Mohaimin clause. The result is a private static reference to JTextArea (inside a scrollable panel inside a WindowBuilder structure). Then I use the getter method to open the JTextArea, and I call getter as follows:
public static PrintWriter pw = new PrintWriter(new mySwingConsole(getter()))
where mySwingConsole is a Writer.
source
share