title: Change the icon of Jtree Root Node
body: <p>Below is the code i have created a Jtree with root Node "Data Generation..</p>
  
  <pre><code>rootNode = new DefaultMutableTreeNode("Data Generation");
  treeModel =new DefaultTreeModel(rootNode);
  tree = new JTree(treeModel);            
  tree.setEditable(true);
  </code></pre>
  
  <p>I have changed the icon images for the leaf node </p>
  
  <pre><code>childNode=new DefaultMutableTreeNode(existingtagnames.get(len).toString());
  DefaultTreeCellRenderer renderer = (DefaultTreeCellRenderer) tree.getCellRenderer();
  ImageIcon imageIcon = new ImageIcon(Generate_Explorer.class.getResource("/org/qmon/generate/Images/Leaf Node.png"));
  renderer.setLeafIcon(imageIcon);
  tree.setCellRenderer(renderer);
  </code></pre>
  
  <p>I dont know how to do for the Root node.. i searched in the internet but unable to find it.</p>
  
  <p>Thanks in advance.</p>