I am using a JTree in my application that needs to be abel to have nodes added to it and removed from it dynamically. Using the following function, everything works, but after one node has been added, any subsequent nodes I add don't show up in the JTree. There are no Exceptions thrown and I can reference the node programmatically. Is there something special I need to do to update the display? Any help would be appreciated. Thank you.
public void addTransition( Transition transition )
DefaultMutableTreeNode node = new DefaultMutableTreeNode( transition );
transitionNode.add( node );
treLayoutTree.scrollPathToVisible( new TreePath( node.getPath() ) );
catch ( Exception e )
Main.getLogger().writeToLogWarn( "MainWindow.addTransition() Exception: " + e.getMessage() );