I have a console ( System.inand System.out) a stand-alone Java application. I am trying to convert it to an applet. But the problem is that there is no console in the Java applet! In other words, when I write to the system output, it is not displayed to the user, and in the same way I can not get input from the user in the absence of a console.
I know that the console view can be done with TextAreaand KeyListener, but for this I will need two different components: one for input and one for output. I want the input and output to come in the same component. Any ideas?
source
share