SHARE
TWEET

Untitled

a guest Sep 14th, 2013 22 Never
  1. if ("a".equals(KeyEvent.getKeyChar()))
  2.     System.out.println("It's a letter")
  3.        
  4. public void keyReleased(KeyEvent ke){
  5.     if (new String(ke.getKeyChar()).length() == 0){
  6.         // do something important...
  7.     }
  8. }
RAW Paste Data
Top