I need to delete treeNode recuresively.
that is if i click a node and if there is no other siblings it must delete the selected node as well as parent node. if parent node has only one child
that is the selected node's parent it must also delete the super parent node.
i am attaching a screen shot, in that if i select the leaf node it must delete the whole tree since there is no other leaf node.
how to do this. is there any simple way or methods.
you are fully responsible for data model provided for tree. And has full access over it in actions/listeners. So just check conditions if the nodes exist after removal and remove parents also if not from the model.
B.t.w. moving thread to proper space. (RF and not RF dev.)