长石 发表于 2014-2-9 11:52 输出语句应该这样写: System.out.println(KeyEvent.getKeyText(e.getKeyCode())+"..."+e.getKeyCode()); ...