title: Netbeans GUI Builder: how to edit generated code
body: <p>Im using Netbeans GUI Builder and I am adding a JTree to my form, as it does Netbeans is generating all the code for the JTree. </p>
  
  <p>What i want to know is, is there a way in Netbeans to add code to the generated code... like in the source view in the <code>Generated Code</code> section it creates </p>
  
  <pre><code>jTree = new javax.swing.JTree();
  </code></pre>
  
  <p>i want to add <code>populateJTree.addNodes(null, folder)</code> so it looks like</p>
  
  <pre><code>jTree = new javax.swing.JTree(populateJTree.addNodes(null, folder));
  </code></pre>
  
  <p>Is there a way of doing this</p>