RFR: 8356770: TreeTableView not updated after removing a TreeItem with children and adding it to another parent [v2]

Andy Goryachev angorya at openjdk.org
Thu Nov 13 19:06:20 UTC 2025


On Thu, 13 Nov 2025 18:52:46 GMT, Ziad El Midaoui <zelmidaoui at openjdk.org> wrote:

>> When a subtree is moved in a `TreeTableView` , the visuals don’t update until a resize or expand/collapse. The `TreeTableViewSkin` only rebuilds cells when the expanded row count changes.
>> This PR makes the skin to detect structural changes on `childrenModificationEvent` using new variable `treeStructureDirty`, and in `updateItemCount()` call `requestRebuildCells()` to refresh the visuals.
>
> Ziad El Midaoui has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add test

Thank you for adding the test!  Verified it fails in master and passes with the fix.

-------------

Marked as reviewed by angorya (Reviewer).

PR Review: https://git.openjdk.org/jfx/pull/1971#pullrequestreview-3461256313


More information about the openjfx-dev mailing list