Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 14th, 2013  |  syntax: None  |  size: 0.22 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }