Module java.desktop
Package javax.swing

# Class JAccessibleAnnouncer

java.lang.Object
javax.swing.JAccessibleAnnouncer

All Implemented Interfaces:
  `AccessibleAnnouncer`

public class JAccessibleAnnouncer extends Object implements AccessibleAnnouncer
This class provides the ability to speak a given string using screen readers.

- ## Field Summary

  ### Fields declared in interface javax.accessibility.AccessibleAnnouncer

  `ANNOUNCE_WITH_INTERRUPTING_CURRENT_OUTPUT, ANNOUNCE_WITHOUT_INTERRUPTING_CURRENT_OUTPUT`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `announce(Accessible a, String str, int priority)`
  This method makes an announcement with the specified priority from an accessible to which the announcing relates
  `static JAccessibleAnnouncer`
  `getJAccessibleAnnouncer()`
  This method checks if an announcing implementation for this platform is available in this build

  ### Methods declared in class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getJAccessibleAnnouncer

    public static JAccessibleAnnouncer getJAccessibleAnnouncer()
    This method checks if an announcing implementation for this platform is available in this build
    Returns:
      announcer instance ore null

  - ### announce

    public void announce(Accessible a, String str, int priority)
    This method makes an announcement with the specified priority from an accessible to which the announcing relates
    Specified by:
      `announce` in interface `AccessibleAnnouncer`
    Parameters:
      `a` - an accessible to which the announcing relates
      `str` - string for announcing
      `priority` - priority for announcing