Which WindowBuilder Swing widget should be used to create the "console" screen of System.out?

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.

+5
source share
2 answers

The answer is described in the "editing" of the question. I used the jfpoilpret suggestion and the Moheimin suggestion. If jfpoilpret wants to send a comment in response, I will select it.

0
source

You can use a class, for example, the Message Console for the System.err/ side System.out.

Message console

+3
source

All Articles