Open a console alongside a Swing GUI in java
<p>I am building an application with a Swing GUI. If you would would open this program from the command line, Some text will print (info and error messages). The program is just a normal executable jar file, but for the people who want to see a console I want an option to open a console <em>from</em> the Swing GUI, which displays all these messages, outputted by <code>System.out.print()</code>. I have seen several applications which have such a function, but I don't know how to do this.</p>
