protected void downloadMaterials() {
		FileControl fileControl = new FileControl();
		Object selectedO = availableMaterialJlst.getSelectedValue();
		String fileName = null;
		if (selectedO != null) {
			fileName = selectedO.toString();
		}
		if (fileControl.downloadFile("src/xml/" + fileName)) {
			JOptionPane.showMessageDialog(this, "You have downloaded" + fileName, "Success", JOptionPane.WARNING_MESSAGE);
		} else {
			JOptionPane.showMessageDialog(this, "You have failed to downloaded" + fileName, "failed", JOptionPane.WARNING_MESSAGE);
		}
		
	}

	/**
	 * Initialise the set rep GUI components
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" }