private void cancelPreviousPlayer()
  {
    FilePlayer.cancelPlayer = true;
    if (currentPlayer != null && !currentPlayer.isDone())
    {
      currentPlayer.cancel(false);
      try
      {
        if (currentPlayer != null)
          currentPlayer.get();
      } catch (InterruptedException | ExecutionException ex)
      {
        Logger.getLogger(FilePlayer.class.getName()).log(Level.SEVERE, null, ex);
      }
    }
    FilePlayer.cancelPlayer = false;
  }