int index = -1;
    public void actionPerformed(ActionEvent e)    {        int index = -1;        try {            index = Integer.parseInt(e.getActionCommand());            switch (index) {                case START_T:                    movieStartActionHandler(startTField, endTField);                    break;                case END_T:                    movieEndActionHandler(startTField, endTField);                     break;                case START_Z:                    movieStartActionHandler(startZField, endZField);                     break;                case END_Z:                    movieEndActionHandler(startZField, endZField);                    break;                case Player.MOVIE_T:                case Player.MOVIE_Z:                    handleIndexChanged(index);                    break;            }        } catch(NumberFormatException nfe) {             throw new Error("Invalid Action ID "+index, nfe);         }    }