public StopAction(RecordAction action) { super("", new ImageIcon(action.getClass().getResource("/resource/icon/Stop24.gif"))); setEnabled(false); record = action; record.addPropertyChangeListener(this); addPropertyChangeListener(record); }
public void actionPerformed(ActionEvent event) { Processor processor = record.getProcessor(); if (processor == null) { return; } JMFHelper.stopRecord(processor); setEnabled(false); firePropertyChange("record", Boolean.TRUE, Boolean.FALSE); }