private void displayPic(int pageNumber) {
		File folder = new File(targetPath);
		File[] listOfFiles;
		if(picOnly == true) {
			listOfFiles = folder.listFiles(new Filter());
		}
		else {
			listOfFiles = folder.listFiles();
		}
		Arrays.sort(listOfFiles, new Sorter());
		
		JLabel[] lblList = theView.getLblList();
		JTextField[] txtList = theView.getTxtList();
		int x = pageNumber;
		int y = x*6-6;
		int z = y+6;
		int length = listOfFiles.length;
		int lbl = 0;
		int txt = 0;
		
		if(z > length) {
			z = length;
		}
				
		for(int i=0; i<6; i++) {
			lblList[i].setIcon(null);
			txtList[i].setText(null);
		}
		
		for(int i=y; i<z; i++) {
			if(listOfFiles[i].isFile()) {
				String name = listOfFiles[i].getName();
				txtList[txt].setText(name);
				txt++;
				
				ImageIcon icon = new ImageIcon(listOfFiles[i].toString());
				Image img = icon.getImage();
				Image setImg = img.getScaledInstance(lblList[lbl].getWidth(), lblList[lbl].getHeight(), Image.SCALE_SMOOTH);
				lblList[lbl].setIcon(new ImageIcon(setImg));
				lbl++;
			}
		}
	}