{ size = new Dimension(columns * columnWidth + 4, fontHeight + 4); } else { size = new Dimension(10, 10); }
size.width = columns * getColumnWidth();
  public Dimension getPreferredSize()  {    Dimension size;    FontMetrics fm = getFontMetrics(getFont());    int fontHeight = fm.getMaxAscent() + fm.getMaxDescent();    int columnWidth = fm.charWidth('m');        if (columns != 0)      {	size = new Dimension(columns * columnWidth + 4, fontHeight + 4);      }    else      {	size = new Dimension(10, 10);      }    return size;    }