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

[macos] a11y : java.lang.NullPointerException is thrown when focus is moved on the JTabbedPane

    XMLWordPrintable

Details

    • b11
    • x86
    • os_x

    Backports

      Description

        This bug is reproduced when VoiceOver is enabled and JFrame is resized such that JTabbedPane has the arrow button to navigate and focus is moved between tabs

        Step to reproduce
        -------------------------
        1) System Preference -> Accessibility -> VoiceOver -> Enable
        2) Run the SwingSet2 with -Djavax.accessibility.screen_magnifier_present=true option
        3) Once SwingSet2 Frame is visible select "Button Demo" ".
        4) Resize SwingSet2 Frame such that only one or two JTabbedPane is visible and left or right arrow is visible
        as shown in the screen recording.
        5) Observed that focus is on "Button Demo" button on the JToolBar
        6) Press tab twice so that focus is moved to "Buttons" JTabbedPane. Observe that NPE is thrown.
        If you see the same then the bug is reproduced.

        I have attached the screen shot of the same.

        This is reproduced in MacOS 13.x & 14.2. JDK 22, 21

        Attachments

          Issue Links

            Activity

              People

                kizune Alexander Zuev
                landrews Lawrence Andrews
                Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: