Java Swing: display console messages into UI JTextArea

I have a small project which should work as a desktop application but run some tasks on background.

So, I wanted to place console information into UI component JTextArea. Google search brought me a wonderful solution Message Console.

usage is very simple: