protected int getRequiredLength(TabInfo eachInfo) {
    TabLabel label = tabs.getTabLabel(eachInfo);
    return getStrategy().getLengthIncrement(label != null ? label.getPreferredSize() : new Dimension())
                                      + (tabs.isEditorTabs() ? tabs.getTabHGap() : 0);
  }
protected int getRequiredLength(TabInfo eachInfo)