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

JTree node expansion/collapse resulting in wrong source for Accessibility event

XMLWordPrintable

      When a JTree node is expanded or collapsed, an Accessibility PropertyChange event is fired with the old state of "collapsed" and new state of "expanded" (or vice versa). This is great. The problem is the source of the event is the AccessibeJTree, and not the AccessibleJTreeNode. This means that an assistive technology listening to this event is unable to report to the user what node was expanded/collapsed.

      To reproduce this, do the following:

      1. Configure your JVM to load AccessibilityMonitor
      2. Launch SwingSet2
      3. Go to the Tree demo
      4. Enable Accessibility PropertyChange Events in AccessibilityMonitor
      5. Select a tree node and press right-arrow (or click on the expansion icon) to expand it
      6. Note in AccessibilityMonitor the firing of an AccessibleState propertychange event, with the old value of "collapsed" and the new value of "expanded". Further note that the Name of the object firing this event is blank. Select the Name cell of this event and bring up the Accessibility API Panel (see the Panels menu), and note finally that the role of the source of this event is "tree"

            lmonsantsunw Lynn Monsanto (Inactive)
            pkorn Peter Korn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: