title: Redirect System.in to swing component
body: <p>Hey guys I am making a terminal application using Swing and Apache Commons. I was able to redirect <code>System.out</code> and <code>System.err</code> to a <code>JTextArea</code> easily but how do I do that for <code>System.in</code> ? Will I need to override <code>Inputstream</code> methods? Do I need to convert the <code>String</code> from <code>JTextArea</code> to byte array and then pass it to <code>InputStream</code>? Code examples would be nice.</p>