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 is jpanel swing?

1104


What is swing delegation event model in java?

1027


What is jfc? What are the features of jfc?

986


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

952


What is swing api?

929


Which containers use a border Layout as their default layout in swing?

985


What is swing in java javatpoint?

967


What is the use of jcomponent class in swing?

985


What is an event handler in swing?

1095


What is jlabel java swing?

935


What is the process of setting the layout manager?

980


What is double buffering ?

934


What is java swing used for?

925


Which method is used for setting security in applets?

1032


How to change button color in java swing?

907