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