RFR: 8341286: TreeView: visual artifacts when setting new root with null value [v3]

Ziad El Midaoui zelmidaoui at openjdk.org
Tue Jul 29 15:55:02 UTC 2025


> The issue is that when we use null value for root item in a TreeView and then expand the root or change it dynamically there are phantom disclosure nodes that appear incorrectly. 
> The issue was caused by this line `if (getSkinnable().isEmpty()) return;` in `TreeCellSkin#updateDisclosureNode()` as it prevents the method from running unless the cell's value is not empty and it caused the creation of disclosure nodes visually without any logic behind.

Ziad El Midaoui has updated the pull request incrementally with one additional commit since the last revision:

  minor change

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

Changes:
  - all: https://git.openjdk.org/jfx/pull/1838/files
  - new: https://git.openjdk.org/jfx/pull/1838/files/2d832143..95997e00

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=1838&range=02
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=1838&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod
  Patch: https://git.openjdk.org/jfx/pull/1838.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1838/head:pull/1838

PR: https://git.openjdk.org/jfx/pull/1838


More information about the openjfx-dev mailing list