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 |
I want to change the appearance of Frame in Runtime, what class can be used to do this?
What are the swing components?
Explain the differences between an applet and a Japplet?
2 Answers College School Exams Tests, Satyam,
Default layout for a ContentPane in JFC?
What is JTable and what is its purpose?
What are the advantages of the event-delegation model over the event-inheritance model?
What is sling swing?
What are the differences between Swing and AWT?
What is jfc swing in java?
What is the use of jcomponent class in swing?
What are the advantages of swing over awt?
What is the use of JTree?