scroller.getViewport().setViewPosition(new Point(0,0)); }
	public void directoryLoaded(Vector directory)	{		if(currentlyLoadingTreeNode == rootNode)		{			rootNode.setUserObject(browser.getDirectory());			scroller.getViewport().setViewPosition(new Point(0,0));		}		currentlyLoadingTreeNode.removeAllChildren();		if(directory != null)		{			for(int i = 0; i < directory.size(); i++)			{				VFS.DirectoryEntry file = (VFS.DirectoryEntry)					directory.elementAt(i);				boolean allowsChildren = (file.type != VFS.DirectoryEntry.FILE);				currentlyLoadingTreeNode.add(new DefaultMutableTreeNode(file,allowsChildren));			}		}		// fire events		model.reload(currentlyLoadingTreeNode);		tree.expandPath(new TreePath(currentlyLoadingTreeNode.getPath()));		/* If the user expands a tree node manually, the tree		 * listener sets currentlyLoadingTreeNode to that.		 * But if VFSBrowser.setDirectory() is called, we want		 * the root node to be updated.		 *		 * Since the browser view receives no prior notification		 * to a setDirectory(), we set the currentlyLoadingTreeNode		 * to null here. */		currentlyLoadingTreeNode = rootNode;	}