public void loadTiles(File folder){
		parent.dp.clearTiles();
		//Vector<String> tempImgs = new Vector<ImageIcon>();
		File[] listOfFiles = folder.listFiles();

		/*for (File file : listOfFiles) {
		    if (file.isFile()) {
		    	if(file.getName().substring(file.getName().length() - 3, file.getName().length()).equals("png")){
		    		tempImgs.add(new ImageIcon(file.getAbsolutePath()));
		    		System.out.println(file.getName());
		    	}
		    }
		}*/
		
		
		String xml = "";
		
		try {
			xml = readFile(folder.getAbsolutePath() + "/tilemap.xml", Charset.defaultCharset());
		} catch (IOException e) { e.printStackTrace(); }
		
		int numTiles = getXMLTileNum(xml);
		
		imgs = new ImageIcon[numTiles];
		
		for(int i = 0; i < numTiles; i++){
			Object[] result = getTileDataFromXML(xml, i);
			Integer id = (Integer) result[0];
			String name = (String) result[1];
			
			System.out.println("objID = " + id.intValue());
			System.out.println("objName = " + name);
			System.out.println("absPath = " + folder.getAbsolutePath());
			
			imgs[id.intValue()] = new ImageIcon(folder.getAbsolutePath() + "/" + name);//tempImgs.get();
			parent.dp.addTile(folder.getAbsolutePath() + "/" + name);
		}
		
		setUpTileInfo();
		
		repaint();
		revalidate();
		
		parent.dp.revalidate();
		parent.dp.repaint();
	}