public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { //...was anderes if (selected) { switch (row) { case 1: case 4: //dieses Bild break; case 7: //ein anderes Bild o.ä. break; //... } } //...u.s.w.}