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

[macos] Accessibility Inspector does not work with JavaFX apps

    XMLWordPrintable

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Java 14, macOS Catalina

      A DESCRIPTION OF THE PROBLEM :
      Application window is completely invisible for Accessibility Inspector

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Create and show a stage
      2. Point Accessibility Inspector (an XCode tool) at the window to verify it's accessible

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Window is reachable by Accessibility Inspector, accessible nodes provide acessibility information
      ACTUAL -
      Window is completely invisible for Accessibility Inspector

      ---------- BEGIN SOURCE ----------
      import javafx.application.Application;
      import javafx.scene.AccessibleRole;
      import javafx.scene.Scene;
      import javafx.scene.control.Label;
      import javafx.scene.layout.Pane;
      import javafx.stage.Stage;

      public class AccessibilityRepro extends Application {

          public void start(Stage stage) throws Exception {
              Label label = new Label("Hello world");
              label.setAccessibleRole(AccessibleRole.TEXT);
              label.setAccessibleHelp("Accessible help");
              label.setAccessibleRoleDescription("Accessible role description");
              label.setAccessibleText("Accessible text");
              stage.setScene(new Scene(new Pane(label)));
              stage.show();
          }

          public static void main(String[] args) {
              Application.launch(AccessibilityRepro.class, args);
          }
      }

      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            arapte Ambarish Rapte
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: