/** This class lets one handle several commands as one command. */ public class MacroCommand extends Command { /** We allow only 5 commands to be handled for this demo. */ private int MAX_COMMANDS = 5; /** The list of commands. */ private Command commands[] = new Command[MAX_COMMANDS]; /** Add a command to the list on position i. */ public void setCommand(int i, Command _command) { if (i