if(sel) { treeCellRenderer.setBackground(treeSelectionBackground); treeCellRenderer.setForeground(treeSelectionForeground); } else { treeCellRenderer.setBackground(treeNoSelectionBackground); treeCellRenderer.setForeground(treeNoSelectionForeground); }  treeCellRenderer.setEnabled(tree.isEnabled());
super.getTreeCellRendererComponent(tree,value,sel,expanded, leaf,row,focus);
	public Component getTreeCellRendererComponent(JTree tree, Object value,		boolean sel, boolean expanded, boolean leaf, int row,		boolean focus)	{		if(sel)		{			treeCellRenderer.setBackground(treeSelectionBackground);			treeCellRenderer.setForeground(treeSelectionForeground);		}		else		{			treeCellRenderer.setBackground(treeNoSelectionBackground);			treeCellRenderer.setForeground(treeNoSelectionForeground);		}		treeCellRenderer.setEnabled(tree.isEnabled());		DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode)value;		Object userObject = treeNode.getUserObject();		if(userObject instanceof VFS.DirectoryEntry)		{			VFS.DirectoryEntry file = (VFS.DirectoryEntry)userObject;			boolean opened = (jEdit.getBuffer(file.path) != null);			treeCellRenderer.setBorder(opened ? openBorder : closedBorder);			if(showIcons)			{				treeCellRenderer.setIcon(getIconForFile(file));				treeCellRenderer.setText(file.name);			}			else			{				treeCellRenderer.setIcon(null);				treeCellRenderer.setText(file.type == VFS.DirectoryEntry.DIRECTORY					? file.name + "/" : file.name);			}		}		else if(userObject instanceof BrowserView.LoadingPlaceholder)		{			if(showIcons)				treeCellRenderer.setIcon(loadingIcon);			else				treeCellRenderer.setIcon(null);			treeCellRenderer.setText(jEdit.getProperty("vfs.browser.tree.loading"));			treeCellRenderer.setBorder(closedBorder);		}		else if(userObject instanceof String)		{			if(showIcons)			{				treeCellRenderer.setIcon(dirIcon);				treeCellRenderer.setText((String)userObject);			}			else			{				treeCellRenderer.setIcon(null);				treeCellRenderer.setText(userObject + "/");			}			treeCellRenderer.setBorder(closedBorder);		}		return treeCellRenderer;	}