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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantage of swing over awt?

1060


What do you mean by java swing?

1011


What is the difference between a scrollbar and a jscrollpane ?

1417


Why swings are used in java?

1021


What are the components of java swing?

1054


How do you swing an applet?

1145


What class is at the top of the AWT event hierarchy?

1146


How to add calendar in java swing using eclipse?

1242


What is the mean of swing?

956


What is import javax swing * used for?

1036


What is import javax swing in java?

1027


What is java swing components?

1168


Why are swing components called lightweight?

1041


What are the components of swing?

1055


How to reload a jframe in java swing?

1081