implement Accessible to make your object accessible : Accessible « Swing « Java Tutorial






import java.awt.IllegalComponentStateException;
import java.util.Locale;

import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole;
import javax.accessibility.AccessibleStateSet;

public class Main implements Accessible {
  public AccessibleContext getAccessibleContext() {
    return new AccessibleContext() {

      @Override
      public AccessibleRole getAccessibleRole() {
        return null;
      }

      @Override
      public AccessibleStateSet getAccessibleStateSet() {
        return null;
      }

      @Override
      public int getAccessibleIndexInParent() {
        return 0;
      }

      @Override
      public int getAccessibleChildrenCount() {
        return 0;
      }

      @Override
      public Accessible getAccessibleChild(int i) {
        return null;
      }

      @Override
      public Locale getLocale() throws IllegalComponentStateException {
        return null;
      }
    };
  }
}








14.126.Accessible
14.126.1.implement Accessible to make your object accessible
14.126.2.Setting an Accessible Name for an Image Button
14.126.3.Setting a Description for Image Icons
14.126.4.Setting a Mnemonic for Buttons for Accessible
14.126.5.Setting a Mnemonic for a Menu for Accessible
14.126.6.Associating a Label with a Component
14.126.7.Setting a Keyboard Accelerator for a Menu Item