static Rect textComponent_substringRect(JTextComponent tc, int startIndex, int endIndex) { ret mergeRects(toRect(modelToView(i)), toRect(modelToView(i+2))); }