Hi Qian. Qian Li: > Currently I have a org.apache.batik.dom.events.DOMKeyEvent, I can use > getCharCode() to get the input value, however it's in int value, does > anyone know how I can convert this value into the actual > character/String.
The value returned by getCharCode() is the Unicode character. This means that you can just cast it to a char: DOMKeyEvent evt = …; char c = (char) evt.getCharCode(); -- Cameron McCormack, http://mcc.id.au/ xmpp:[EMAIL PROTECTED] ▪ ICQ 26955922 ▪ MSN [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
