Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to add and delete nodes in Jtree?



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

Post New Answer

More Swing Interview Questions

what are the steps required in creating an empty table drop?

0 Answers  


Is swing an adjective?

0 Answers  


Why should the implementation of any swing callback (like a listener) execute quickly?

0 Answers  


what are the root classes of all classes?

4 Answers  


What is java awt and swing?

0 Answers  


What is the what is the difference between invokeandwait() and invokelater()? ?

0 Answers  


Which swing methods are thread-safe?

0 Answers  


What is swing components in java?

0 Answers  


please any one explain this project: Minimizing recovery state in geographic ad hoc routing

1 Answers   IBM,


What are the different components that are used to show a container?

0 Answers  


how can u handle runtime exceptions in java plz explain with examples briefly?

3 Answers   Fujitsu, IBM,


How is multi-threading gets implemented using swing?

0 Answers  


Categories