FIXED a bug that did not consider initialised checked leaf nodes

This commit is contained in:
leriomaggio
2021-07-10 21:15:35 +01:00
parent affbd917b3
commit f655151a6e

View File

@@ -346,6 +346,13 @@ public class FCheckBoxTree extends JTree {
}
if (lastChildNodePath != null)
updatePredecessors(lastChildNodePath);
else {
// leafNode
if (selectStatus)
checkedPaths.add(treePath);
else
checkedPaths.remove(treePath);
}
}
private void setPathCheckStatus(TreePath tp, boolean checkStatus) {