Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

how to update jtree after removing or adding new node?

814246Feb 1 2013 — edited Feb 13 2013
after removing the nodes from jtree , nodes are still there but with no dotted lines.
i think my model is not updated properly or jtree is not getting notified properly.

Im using DefaultTableModel and my nodes are of user class which extends DefaultMutableTreeNode Class.

i tired method:

model.reload(node);
model.nodeStructureChanged(node);
model.nodeChanged(node);

but nothing is working properly. nodes are still there but only branch lines (dotted lines) are gone.

any suggestions!!

Comments

843799
simpleU.getViewTransform()

Then alter the transform3d it returns, then simpleU.setViewTransform()
843799
Does not work.
In the documentation, there is no such method at all.
843799
oops, close but no bannana, simpleU.getViewingPlatform() and simpleU.getViewPlatformTransform(). then alter as i mentioned above. (assuming you're using SimpleUniverse that is, if you're not, then its easy).
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 13 2013
Added on Feb 1 2013
5 comments
3,429 views