I have a jtree. I have set selection mode as SINGLE_TREE_SELECTION. (f_jtree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION)

. But, on initial load of jtree, I am pre-selecting a node. If the nodes of same id are found, then I'll have to select all the nodes matched. Is it possible to select only a single node(ay, select the first node found) and make some asthetic change (like change the background) for other nodes of similar id?
Thanks