Insets insets = textComponent.getInsets();
Insets insets = textComponent.getInsets(cachedInsets);
  protected Rectangle getVisibleEditorRect()  {    int width = textComponent.getWidth();    int height = textComponent.getHeight();    // Return null if the component has no valid size.    if (width <= 0 || height <= 0)      return null;	    Insets insets = textComponent.getInsets();    return new Rectangle(insets.left, insets.top,			 width - insets.left - insets.right,			 height - insets.top - insets.bottom);  }