Its unfortunately in the code block that net beans does not like you to touch, I also couldn't see it when I looked. Regardless if you have a similar GUI to me and lets face it it is no doubt from the same template.. Involves a JTree so yep.
In your constructor underneath init <-- where the IDE doesn't want you to touch it.
Code:
initComponents() ;
root_node =new DefaultMutableTreeNode("Nothing");
DefaultTreeModel treeModel = new DefaultTreeModel(root_node);
DataTree.setModel(treeModel) ;
Then something to explicitly set it to nothing for convenience a method like "setupTree" will need something like this:
Code:
root_node = null ;
root_node = new DefaultMutableTreeNode(host);
DefaultTreeModel treeModel = new DefaultTreeModel(root_node);
DataTree.setModel(treeModel) ;
I am thinking now that it is this wonderful setModel() function thats doing the GUI updating for me. Filthy hacked together code but its doing what I needed it to.