Here you can find the source of redrawAllTreeCellsRec(DefaultTreeModel treeModel, TreeNode parent)
private static void redrawAllTreeCellsRec(DefaultTreeModel treeModel, TreeNode parent)
//package com.java2s; //License from project: BSD License import javax.swing.tree.DefaultTreeModel; import javax.swing.tree.TreeNode; public class Main { private static void redrawAllTreeCellsRec(DefaultTreeModel treeModel, TreeNode parent) { treeModel.nodeChanged(parent);/*from ww w . j a v a2s .c o m*/ for (int i = 0; i < parent.getChildCount(); i++) { redrawAllTreeCellsRec(treeModel, parent.getChildAt(i)); } } }