user input
I'm fairly new to Java(6 months) and I'm trying to mimic an old
DOS C program but in an applet.
I have been successful at written some Java graphics type
programs like the "bouncing ball".
Now all I want to do is print "Enter a string" on the applet
and then wait for the user to type a string followed by
the enter key.
In C this would look like:
printf("Enter a string");
gets(input);
I know that the print statement would be something like:
g2D.drawstring("Enter a string");
But how do I have a cursor appear on the applet, wait
for keystrokes and store them in an array?
Any suggestions?

