public void handleActionKey(){
  BTDownload[] selectedDownloaders=getSelectedDownloaders();
  if (selectedDownloaders.length == 1) {
    playSingleMediaFileAction.setEnabled(selectionHasMediaFiles(selectedDownloaders[0]));
  }
  if (playSingleMediaFileAction.isEnabled()) {
    playSingleMediaFileAction.actionPerformed(null);
  }
  if (showInLibraryAction.isEnabled()) {
    showInLibraryAction.actionPerformed(null);
  }
}

public void handleActionKey ( ) { BTDownload [ ] selectedDownloaders = getSelectedDownloaders ( ) ; if ( selectedDownloaders . length == 1 ) { playSingleMediaFileAction . setEnabled ( selectionHasMediaFiles ( selectedDownloaders [ 0 ] ) ) ; } if ( playSingleMediaFileAction . isEnabled ( ) ) { playSingleMediaFileAction . actionPerformed ( null ) ; } if ( showInLibraryAction . isEnabled ( ) ) { showInLibraryAction . actionPerformed ( null ) ; } }
handles a double - click event in the table .
