private void getSelectedDownloads() {
		toDownload = new ArrayList<>();
		ArrayList<Object> selections;
		for (int i = 0, l = table.getRowCount(); i < l; i++) {
			selections = table.isSelected(i);
			if ((boolean) selections.get(0)) {
				toDownload.add(new Resource(i, lectures.get(i)));
				//System.out.println(lectures.get(i));
			}
			if ((boolean) selections.get(1)) {
				toDownload.add(new Resource(i, txt.get(i)));
				//System.out.println(txt.get(i));
			}
			if ((boolean) selections.get(2)) {
				toDownload.add(new Resource(i, srt.get(i)));
				//System.out.println(srt.get(i));
			}
			if ((boolean) selections.get(3) && pdf.get(i) != null) {
				toDownload.add(new Resource(i, pdf.get(i)));
				//System.out.println(pdf.get(i));
			}
			if ((boolean) selections.get(4) && ppt.get(i) != null) {
				toDownload.add(new Resource(i, ppt.get(i)));
				//System.out.println(ppt.get(i));
			}
		}
	}