How do you delete a row from a JTree?
Posted on 2006-11-20
I created my own JTree model that takes a custom data structure and I build a JTree from the tree model. That all works fine, the problem occurs when I try to delete a node from the tree. I am not sure how to do this. What approach would I use to delete a node and of course redisplay the tree without the node I just attempted to delete. I'm only deleting the tree node, not the data from the data structure.