int (int tabPlacement, int horizRunCount, int maxTabHeight) { for (int i = 0; i < tabPane.getTabCount(); i++) { Component component = tabPane.getComponentAt(i); if (component != null) { return super.calculateTabAreaHeight(tabPlacement, horizRunCount, maxTabHeight); } } return maxTabHeight + tabRunOverlay; }