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