RFR: 8341286: TreeView: visual artifacts when setting new root with null value
Andy Goryachev
angorya at openjdk.org
Mon Jul 28 17:22:11 UTC 2025
On Mon, 30 Jun 2025 21:49:22 GMT, Ziad El Midaoui <zelmidaoui at openjdk.org> wrote:
> Fix for phantom disclosure nodes appearing when root is null
Hmm, I am not sure this is the right solution: remember, the tree works just fine if you change the root in the form of `TreeItem<>(new Entry(null))`, but breaks when you set `TreeItem<>(null)`.
This means one thing: the logic is there, but the `null` content of TreeItem messes it up.
Can you try one thing: run two instances of the app in the debugger side by side and step through the relevant parts of the code, until you find the difference? I suspect some condition breaks when it encounters null.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1838#issuecomment-3024646184
More information about the openjfx-dev
mailing list