return c.getWidth();
int size; if (axis == SwingConstants.HORIZONTAL) size = c.getHeight(); else size = c.getWidth(); return size;
    protected int getSizeOfComponent(Component c)    {      return c.getWidth();    }