Want an interface to address some things missing in the Accessibility text support:
interface AccessibleExtendedText {
String getTextRange(int startIndex, int endIndex);
Enumeration getTextWithinBounds(Rectangle r); // pairs of [start,end] indexes
Rectangle getTextBounds(int startIndex, int endIndex);
getAtIndex(int part, int index); // must return string & [start, end]
getBeforeIndex(int part, int index); // must return string & [start, end]
getAfterIndex(int part, int index); // must return string & [start, end]
};