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 the advantage of swing over awt?
What is swing control?
Hello Everyone.. I m trying to develop a java swing application where i can display a doc file Jeditorpane or Jtextpane.
What are the components of swing?
What is the function of lightweight components used in swing?
What is swing container?
What are controls and what are different types of controls in awt?
How to print in java swing application?
What are the benefits of using Swing over AWT?
Is swing better than awt?
What is the design pattern that java uses for all swing components ?
What is Java Swing?