void () { TreePath[] paths = getSelectionPaths(); if (paths != null) { TreeUI ui = getUI(); for (int i = paths.length - 1; i >= 0; i--) { Rectangle bounds = ui.getPathBounds(Tree.this, paths[i]); if (bounds != null) { repaint(bounds); } } } }