How to add and delete nodes in Jtree?
Answer / ramachandran
Iam try this code but not properly working...yor try to get
ans and post..........
DefaultTreeModel model = (DefaultTreeModel)tree.getModel();
DefaultMutableTreeNode root =
(DefaultMutableTreeNode)model.getRoot();
root.add(new DefaultMutableTreeNode("another_child"));
model.reload(root);..........
| Is This Answer Correct ? | 1 Yes | 0 No |
What is a swing application?
How to align components in java swing?
What are the swing components?
What is swing control?
What's java swing?
How can you draw using Swing components?
What is jlabel java swing?
What are heavy weight components ?
Why does JComponent have add() and remove() methods but Component does not?
What is the design pattern that java uses for all swing components ?
What is the use of java swing?
What is java awt and swing?