public DefaultMutableTreeNode buildTree() {
		DefaultMutableTreeNode root;
		DefaultMutableTreeNode grandparent;
		DefaultMutableTreeNode parent;
		File fileRoot = new File(System.getProperty("resources") + "/tiles");
		File[] fileGrandparent = fileRoot.listFiles();
		File[] fileParent;
        
        root = new DefaultMutableTreeNode(fileRoot.getName());

        if(fileGrandparent.length > 0) {
        	for(int x = 0; x<fileGrandparent.length; x++) {
	        	if(fileGrandparent[x].isDirectory()) {
	        		grandparent = new DefaultMutableTreeNode(fileGrandparent[x].getName());
	        		root.add(grandparent);
	        		fileParent = fileGrandparent[x].listFiles();
	        		if(fileParent.length > 0) {
		        		for(int y = 0; y<fileParent.length; y++) {
		        			parent = new DefaultMutableTreeNode(fileParent[y].getName());
		        			grandparent.add(parent);
		        		}
	        		}
	        	} else {
	        		grandparent = new DefaultMutableTreeNode(fileGrandparent[x].getName());
	        		root.add(grandparent);
	        	}
	        }
        }
        
        return root;
	}