Here you can find the source of nodesChanged(DefaultTreeModel rightTreeModel)
public static void nodesChanged(DefaultTreeModel rightTreeModel)
//package com.java2s; //License from project: Apache License import java.util.Enumeration; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultTreeModel; public class Main { public static void nodesChanged(DefaultTreeModel rightTreeModel) { DefaultMutableTreeNode root = (DefaultMutableTreeNode) rightTreeModel.getRoot(); Enumeration enumeration = root.breadthFirstEnumeration(); while (enumeration.hasMoreElements()) { DefaultMutableTreeNode defaultMutableTreeNode = (DefaultMutableTreeNode) enumeration.nextElement(); rightTreeModel.nodeChanged(defaultMutableTreeNode); }//from www . ja v a 2 s. com } }