I found some details on the internet for this problem but the solution does not seem to work. I want to be able to expand all the nodes ( including the leaf nodes ) of a JTree. This is the code I have …
Tag: jtree
Jtree not shown on adding a node!
I have a static jtree in a scrollpane. And now iam trying to add child to jtree, it got added successfully. Now, the added node is not visible in the jtree. Try 1: I have tried with model.reload() Try 2: I have tried with tree.setModel() too… Even then newly added child is not visible. but Its getting added in thr