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 are the different types of layout managers used in swing?
Can a class be it?s own event handler? Explain how to implement this?
What things to do to make a web browser compatibale for swing components?
1 Answers Tesco, TracFone, Wipro,
Is swing better than awt?
Why swings are used in java?
Why would you use swingutilities.invokeandwait or swingutilities.invokelater?
What is the base class for all swing components?
How to merging the particular cells in JTable
Is swing thread-safe?
What is jpanel in java swing with example?
Is java swing a framework?