[4672] in java-interest

home help back first fref pref prev next nref lref last post

Re: ASCII to char ?

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Wed Jan 10 14:28:52 1996

Date: Wed, 10 Jan 1996 09:42:21 -0800
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: pgaitond@tfisys.dlj.com
Cc: java-interest@java.Eng.Sun.COM


Hi Prasad,

> For a  Event.KEY_PRESS event how do I convert  Event.key  member to the
> character that it represents ?  Should Character.forDigit(int,int) do the
> trick, and if so what is the radix ?

You can simply cast it to a character:

	char ch = (char)evt.key;
	
Have fun,

	Arthur van Hoff
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post