d.width = fm.charWidth('m') * columns;
d.width = Math.max(d.width,fm.charWidth('m') * columns);
	public Dimension getPreferredSize()	{		Dimension d = super.getPreferredSize();		FontMetrics fm = getToolkit().getFontMetrics(getFont());		d.width = fm.charWidth('m') * columns;		d.height = Math.max(d.height,fm.getHeight() * rows);		return d;	}