return containerSize.width - insets.left - insets.right;
int size; if (axis == SwingConstants.HORIZONTAL) size = containerSize.width - insets.left - insets.right; else size = containerSize.height - insets.top - insets.bottom; return size;
    protected int getAvailableSize(Dimension containerSize, Insets insets)    {      return containerSize.width - insets.left - insets.right;    }