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

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

0 Answers  


What is javax swing joptionpane?

0 Answers  


What is swing in java javatpoint?

0 Answers  


What is swing components in java?

0 Answers  


What is the use of jfc in java swing?

0 Answers  


What is swing in java with example?

0 Answers  


What are the different types of layout managers used in swing?

0 Answers  


What are all the components used in Swing?

1 Answers  


Why swing is better than awt?

0 Answers  


Explain the difference between awt and swt.

0 Answers  


Explain the difference between jfc & wfc.

0 Answers  


What is the difference between a scrollbar and a jscrollpane ?

0 Answers  


Categories