public void deleteFile(String docname2) {
		if (fileList.getItemCount()<=1) return;
		int position = -1;
		for (int i = 0; i < fileList.getItemCount(); i++) {
			if (fileList.getItemAt(i).toString().equals(docname2)) {
			    position = i;
			    System.out.println("found position");
			    System.out.println(position);
			    break;
			}

		}
		
		fileList.removeItemAt(position);
	    filenameToDocNum.remove(docname2);
	    

	}