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 are heavyweight components? What is lightweight component?
What is the difference between invokeAndWait() and invokeLater()?
What are all the components used in Swing?
when we right click on the JTable using mouse it works properly but how to right click on JTable in java using keyboard what should be the code for the same.....? Thanks Nitin
What are the advantage of swing over awt?
What is java swing gui?
What is the class in swing to change the appearance of the frame in runtime?
What is the difference between AWT & Swing?
21 Answers BeBo Technologies, Deshaw, TCS,
Is there any heavyweight component in swings?
Why are swings considered lightweight?
What is the use of jfc in java swing?
What do you mean by java swing?