Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8341286

TreeView: visual artifacts when setting new root with null value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx22
    • javafx
    • None

      - run the attached code
      - click to expand the root node
      - observe the "expand" triangle icon at the bottom of the window (problem 1)
      - press Change Root button
      - make the window height larger
      - notice the second artifact

      The issue seems to be caused by setting a root TreeItem with either a null value
      `new TreeItem<>(null)`
      or the null wrapped value
      `new TreeItem<>(new Entry(null))`

      starting on line 43

      Using a non-null value works fine ``new TreeItem(new Entry("Root"))`

      This might be related to a similar issue in TreeTableView. JDK-8341281

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: