示例#1
0
 public void keyTyped(KeyEvent e) {
   char key = e.getKeyChar();
   if (key == '\n') atc_obj.getInputhandler().processCommand();
   else atc_obj.getInputhandler().processKey(key);
 }
示例#2
0
 public void actionPerformed(ActionEvent e) {
   atc_obj.getInputhandler().processActionCommand(e.getActionCommand());
 }