Tree Events: Model Changes
The TreeModelEvent Class lets us catch:
changes in information on children in the path
This wrapped information is accessed through methods:
public int[ ] getChildIndices();
public Object[ ] getChildren();
public Object[ ] getPath();
public TreePath getTreePath();
The TreeModelListener interface imposes four methods:
public void treeNodesChanged(TreeModelEvent e);
public void treeNodesInserted(TreeModelEvent e);
public void treeNodesRemoved(TreeModelEvent e);
public void treeStructureChanged(TreeModelEvent e);