return dims.width; return 0;
size = dims.height; } return size;
    protected int getPreferredSizeOfComponent(Component c)    {      Dimension dims = c.getPreferredSize();      if (dims != null)	return dims.width;      return 0;    }