startTField.setActionCommand(""+START_T); startTField.addActionListener(this); startTField.addFocusListener(this); endTField.setActionCommand(""+END_T); endTField.addActionListener(this); endTField.addFocusListener(this); startZField.setActionCommand(""+START_Z); startZField.addActionListener(this); startZField.addFocusListener(this); endZField.setActionCommand(""+END_Z); endZField.addActionListener(this); endZField.addFocusListener(this);
attachFieldListeners(startTField, START_T); attachFieldListeners(endTField, END_T); attachFieldListeners(startZField, START_Z); attachFieldListeners(endZField, END_Z);
    void attachListeners()    {        //TexField        startTField = view.getMovieStartT();        endTField = view.getMovieEndT();        startZField = view.getMovieStartZ();        endZField = view.getMovieEndZ();        startTField.setActionCommand(""+START_T);          startTField.addActionListener(this);        startTField.addFocusListener(this);        endTField.setActionCommand(""+END_T);          endTField.addActionListener(this);        endTField.addFocusListener(this);        startZField.setActionCommand(""+START_Z);          startZField.addActionListener(this);        startZField.addFocusListener(this);        endZField.setActionCommand(""+END_Z);          endZField.addActionListener(this);        endZField.addFocusListener(this);        //RadioButton        JRadioButton movieZ = view.getMovieZ(), movieT = view.getMovieT();        movieZ.addActionListener(this);        movieZ.setActionCommand(""+Player.MOVIE_Z);        movieT.addActionListener(this);        movieT.setActionCommand(""+Player.MOVIE_T);                view.getSliderT().addChangeListener(this);        view.getSliderZ().addChangeListener(this);    }