[1566] in java-interest
keyDown
daemon@ATHENA.MIT.EDU (Colin B. Boatwright)
Fri Sep 8 03:09:05 1995
Date: Fri, 8 Sep 1995 00:12:11 -0400 (EDT)
From: "Colin B. Boatwright" <colin@nando.net>
To: java-interest@java.sun.com
Anybody know how to convert the int value from the keyDown function to
its ASCII character? Below yield the #, not the char.
public void keyDown(int k) {
showstat =! showstat;
if (showstat) {
String tmp = "You just pressed " + k;
showStatus(tmp);
} else {
showStatus("");
}
}
Colin
------------------------------------------------------------------------------
Colin B. Boatwright | 919/836-5772 Voice | http://www.nando.net
Colin@NandO.net | 919/836-2814 Fax | New Media Division
NandO.net Developer | 919/414-3020 Cell | McClatchy Newspapers Inc.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com