AccessibleContext () { // Return the accessible context of the component we wrap (if it is accessible) if (accessibleContext == null) { if ((myComponent instanceof Accessible) && (myComponent.getAccessibleContext() != null)) { accessibleContext = new AccessibleTableCellRendererComponent(myComponent.getAccessibleContext()); } else { // If myComponent is not accessible -- which should be rare for a fully accessible application, // returning the default JPanel accessibility context is a reasonable default. accessibleContext = super.getAccessibleContext(); } } return accessibleContext; }