int (final SingleRowPassInfo data) { JComponent hToolbar = data.hToolbar.get(); int length; if (hToolbar != null) { length = myTabs.getWidth() - data.insets.left - data.insets.right - hToolbar.getMinimumSize().width; } else { length = myTabs.getWidth() - data.insets.left - data.insets.right; } length += getStartPosition(data); int entryPointWidth = myTabs.getEntryPointPreferredSize().width; Insets toolbarInsets = myTabs.getActionsInsets(); int insets = toolbarInsets.left + toolbarInsets.right; length -= (entryPointWidth + insets * Math.signum(entryPointWidth)); return length; }