svoid setTreeCellRenderer(final JTree tree, final TreeCellRenderer renderer) { if (tree != null) swing { tree.setCellRenderer(renderer); } }