Automation using Java Access Bridge

后端 未结 2 2044
春和景丽
春和景丽 2020-12-29 17:05

I can capture text from UI controls (button/Editbox/Checkbox etc) in Java Applications, using Java Access Bridge events. How can I:

  1. Set text in a Editbox
2条回答
  •  情书的邮戳
    2020-12-29 17:35

    I would subclass the AccessibleContext of your GUI component and provide it with an accessibleAction object. Make AccessibleContext.getAccessibleAction() return your object.

    If it's not null, it gives the screen reader a list of supported actions, that can be invoked - by the screen reader - by calling doAction on it.

提交回复
热议问题