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