private void setNode(DefaultMutableTreeNode root, String[] path, int cPath)
	{
		@SuppressWarnings ("rawtypes")
		Enumeration e = root.preorderEnumeration();

		DefaultMutableTreeNode n = null;
		while (e.hasMoreElements())
		{
			DefaultMutableTreeNode cn = (DefaultMutableTreeNode) e
			.nextElement();

			if (cn.getUserObject().equals(path[cPath]) && cn != root)
			{
				n = cn;
				break;
			}
		}

		if (n == null)
		{
			n = new DefaultMutableTreeNode(path[cPath]);
			root.add(n);
		}

		if (cPath < path.length - 1)
		{
			setNode(n, path, cPath + 1);
		}
	}