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 do u mean by GUI framework
What is the use of java swing?
What is javax swing joptionpane?
Which containers use a border Layout as their default layout in swing?
What are the components of swing in java?
What is frame in java swing?
How to change button color in java swing?
Which layout does swing use by default?
Why is model-view-controller architecture used in swing?
What things to do to make a web browser compatibale for swing components?
1 Answers Tesco, TracFone, Wipro,
What is the design pattern that java uses for all swing components ?
how to give transparency to JComboBox,JList and JTable