You should try to subclass from JComponent or one of its descendants since that will automatically make your object accessible. If that is not possible, your object should implement Accessible.
import javax.accessibility.*;
public class BasicAccessible implements Accessible {
public AccessibleContext getAccessibleContext() {
return new AccessibleContext() {
// Implement all the abstract methods in this abstract class.
};
}
}