Console IO for Java applet
<p>I have a console based (<code>System.in</code> and <code>System.out</code> based) Java standalone application. I am trying to convert it into an applet. But the problem is that there is no console in Java applet! In other words, when I write to system output it is not displayed to the user and similarly I am unable to get input from user in absence of a console. </p>

<p>I know that a console lookalike can be done using <code>TextArea</code> and <code>KeyListener</code>, but for that I would need two different components, one for input and one for output. I want the input and output to go into the same component. Any ideas?</p>
