@Override
	public Component getTreeCellRendererComponent (
		JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus )
	{
		JLabel label = (JLabel) super.getTreeCellRendererComponent( tree, value, sel, expanded, leaf, row, hasFocus );
		TreeModel model = tree.getModel();
		
		if ( model instanceof BencodeTreeModel && value instanceof BencodeTreeNode ) {
			label.setIcon( getIconForValue( (BencodeTreeModel) model, (BencodeTreeNode) value ) );
			label.setText( getTextForValue( (BencodeTreeModel) model, (BencodeTreeNode) value ) );
		}
		
		return label;
	}