Hi. I'm creating an applet for a webpage and I need to detect for the keyboard primarily the arrowkeys. I have tried the following which doesnt seem to work:
public boolean keyDown(Event evt, int key) {
showStatus(String.valueOf(key));
return true;
}
so I have moved up to Java 1.1 and decided to use a KeyListener. How do I set this up so that a keypress is detected whenever the browser has focus?
I am also running a thread if that makes any difference.
Many thanks in advance.
ASCII silly question, get a silly ANSI
public boolean keyDown(Event evt, int key) {
showStatus(String.valueOf(key));
return true;
}
so I have moved up to Java 1.1 and decided to use a KeyListener. How do I set this up so that a keypress is detected whenever the browser has focus?
I am also running a thread if that makes any difference.
Many thanks in advance.
ASCII silly question, get a silly ANSI