JComboBox box = (JComboBox) e.getSource(); playerUIMng.setMovieType(box.getSelectedIndex()); break;
playerUIMng.setMovieType( ((JComboBox) e.getSource()).getSelectedIndex()); break;
    public void actionPerformed(ActionEvent e)    {        int index = -1;        try {            index = Integer.parseInt(e.getActionCommand());            switch (index) {                case PLAY_CMD:                    handlePlay(); break;                case PAUSE_CMD:                    handlePause(); break;                    case STOP_CMD:                    handleStop(); break;                case EDITOR_CMD:                    editorActionHandler(); break;                 case MOVIE_TYPE_CMD:                    JComboBox box = (JComboBox) e.getSource();                    playerUIMng.setMovieType(box.getSelectedIndex()); break;            }        } catch(NumberFormatException nfe) {             throw new Error("Invalid Action ID "+index, nfe);         }     }