JHoover.getDownloadManagerThread().interrupt();  ArrayList<Thread> threadList = DownloadManager.getInstance(0, 0, 0, null, null).getThreadList(); for (int i=0; i<threadList.size(); i++) {  threadList.get(i).interrupt();
if (DownloadManager.isRunning()) { Object[] options = {"Yes", "No"}; int n = JOptionPane.showOptionDialog(JHMainFrame.getInstance(), Labels.CANCEL_THE_DOWNLOAD_QUESTION_LABEL, Labels.DOWNLOAD_STATUS_LABEL, JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); if (n==0) {  stopAction(); }
		public void actionPerformed (ActionEvent e) {			//stop the downloadManager Thread			JHoover.getDownloadManagerThread().interrupt();			//stop all the Threads			ArrayList<Thread> threadList = DownloadManager.getInstance(0, 0, 0, null, null).getThreadList();			for (int i=0; i<threadList.size(); i++) {				//TODO: voir si cela foncionne				threadList.get(i).interrupt();			}		}