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 |
How to reload a jframe in java swing?
Difference between AWT and Swing compenents?
Why are swing components called lightweight components?
What is swing and its features in java?
What is the difference between swing and awt in java?
What are controls and what are different types of controls in awt?
How to print in java swing application?
What is java panel swing?
What is the base class for all of swing components?
How to link two forms in java swing?
What are the features of JFC?
Which types of components are used in designing swing based gui?