return size;
  public Dimension getPreferredSize(JComponent c)  {    View v = getRootView(textComponent);    float w = v.getPreferredSpan(View.X_AXIS);    float h = v.getPreferredSpan(View.Y_AXIS);    Insets i = c.getInsets();    return new Dimension((int) w + i.left + i.right,                         (int) h + i.top + i.bottom);  }