I'm using Forte IDE and added a JTree via drag and drop.
It creates a default tree so now I want to change it.
the problem is that all the samples I have uses the following code:
DefaultMutableTreeNode root = new DefaultMutableTreeNode( "Top" );
DefaultMutableTreeNode col21 = new DefaultMutableTreeNode ("Line1" );
DefaultMutableTreeNode col22 = new DefaultMutableTreeNode ("line2" );
JTree tree = new JTree( root );
The problem is that Forte creates the instance of JTree already and its readonly since this is the part that the ide uses. So I cant create the tree when creating a new instance of the tree.
Is there another way of doing this? Maybe a different method?