title: change the jtree node text runtime
body: <p>I am trying to create a JTree in java swing now i want to change the node text at runtime</p>
  
  <pre><code>try
   {
  
  int a=1,b=2,c=3;
   DefaultMutableTreeNode root =
  new DefaultMutableTreeNode("A"+a);
  DefaultMutableTreeNode child[]=new DefaultMutableTreeNode[1];
  DefaultMutableTreeNode grandChild[]= new DefaultMutableTreeNode[1];
  
  child[0] = new DefaultMutableTreeNode("Central Excise"+b);
    grandChild[0]=new DefaultMutableTreeNode("CE Acts: "+c);
  child[0].add(grandChild[0]);
   root.add(child[0]);
  tree = new JTree(root);
   }
   catch(Exception ex)
  
   {
    ex.printStackTrace()
   }
  </code></pre>
  
  <p>Now i want later on how can i change  A 1 to a 2 dynamically and similarly in child and grand child nodes</p>