// Re-select the node, and make sure it's visible
Path newPath = new Path(path, 0, n - 1);
newPath.add(parentData.indexOf(treeNode));
treeView.setSelectedPath(newPath);
treeView.scrollAreaToVisible(treeView.getNodeBounds(newPath));
}
}
public void cancel() {
if (!isEditing()) {