super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
if (leaf) {
final DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;
final MenuEntry menuEntry = (MenuEntry) node.getUserObject();
if (menuEntry.getIconKey() != null) {
final MindIcon mindIcon = menuEntry.createMindIcon();
if (mindIcon != null)
setIcon(mindIcon.getIcon());
}
}
return this;
}