public void actionPerformed(ActionEvent ev) {

      if (ev.getActionCommand().equals("open")) {
         UIManager.put("FileChooser.readOnly", true);
         JFileChooser fileChooser = new JFileChooser();
         FileExtensionFilter filter = new FileExtensionFilter();

         filter = new FileExtensionFilter();
         filter.addExtension("cap");
         filter.setDescription("Screen Capture File");
         
         if (target != null) {
            fileChooser.setSelectedFile(new File(target));
         }
         fileChooser.setFileFilter(filter);
         fileChooser.showOpenDialog(this);

         if (fileChooser.getSelectedFile() != null) {
            target = fileChooser.getSelectedFile().getAbsolutePath();

            open();
         }
      } else if (ev.getActionCommand().equals("play")) {
         play();
      } else if (ev.getActionCommand().equals("reset")) {
         reset();
      } else if (ev.getActionCommand().equals("fastForward")) {
         fastForward();
      } else if (ev.getActionCommand().equals("pause")) {
         pause();
      } else if (ev.getActionCommand().equals("stop")) {
         stop();
      }
   }