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

Who created the swing?

887


What are the components of java swing?

970


Explain the difference between awt and swt.

990


What is the function of internal frame in swing?

1024


What are the two key features of swing?

962


How is parsing html used in swing?

994


What is an event in Swing?

1020


What is actionlistener in java swing?

959


What is a component in swing?

947


What is java panel swing?

957


What is content pane in swing?

916


What is the purpose of serialization in swings?

952


What is the use of jcomponent class in swing?

1004


Why are swing components called lightweight?

933


Where is java swing used?

1035