I''m trying to add a key listener to my applet.
I have this code inside of init():
public void keyPressed(KeyEvent e)
This should work. It works fine in an application. I can
get mouse listeners to work using this same technique.
I think the problem is that the applet doesn''t have the
"focus" of the keyboard (e.g. when I use appletviewer to run
it the keyboard controls the buttons at the top of the appletviewer.)
Is there anyway to get around this problem?