java - Check if its a character -


after getting action keylistener, using event.getkeycode() , later on keyevent.getkeytext(keycode), how check if outcome of .getkeytext(keycode) single character 'a' , not whole word "space" ?

how this:

keyevent.getkeytext(keycode).length == 1 

Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -