package edu.jsu.leathrum.mathlets.shared; import java.awt.event.*; public class KeyHandlerSequence { class Listener implements KeyListener { public void keyPressed(KeyEvent e) {} public void keyReleased(KeyEvent e) { for (int i=0; i0 && inputList[numInput-1].isKey(e)) { inputList[0].requestFocus(); inputList[numInput-1].doKeyAction(e); inputReturnActionList[numInput-1].doThis(); } } public void keyTyped(KeyEvent e) {} } Listener ll = new Listener(); final int INPUTS = 4; KeyHandler[] inputList = new KeyHandler[INPUTS]; ActionWrapper[] inputReturnActionList = new ActionWrapper[INPUTS]; private int numInput=0; public void registerKeyHandler(KeyHandler item, ActionWrapper act) { while (numInput >= inputList.length) { KeyHandler[] newinlist = new KeyHandler[inputList.length+2*INPUTS]; for (int i=0; i