private void updateTabComponentLabelsFont() {
    int tabsCount = getTabCount();
    for (int i = 0; i < tabsCount; i++) {
      Component tabComp = getTabComponentAt(i);
      if (tabComp instanceof JLabel) {
        tabComp.setFont(getFont());
      }
    }
  }
private void updateTabComponentLabelsFont()