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

TreeView with showRoot false can be made to disappear irrevocably with left-arrow key

XMLWordPrintable

      The attached program creates a simple TreeView. If you select an item in the TreeView and repeatedly hit the left-arrow key, then the sections of the TreeView will close and eventually the whole TreeView will disappear. If you hit the right-arrow key just after the TreeView disappears then it comes back again, but if instead you hit left-arrow again then the TreeView is gone forever. It appears that the left-arrow is causing the invisible root node to be closed. When showRoot is true, there is no problem because you can just click on the root to open it again. But when showRoot is false you are out of luck. Closing the root node is not possible with the mouse in this case, and it should not be possible with the arrow keys either.

            jgiles Jonathan Giles
            emcmanuswse Eamonn McManus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: