code: public void setShowTabNames(boolean showTabNames) {
          for (int i = 0; i < getTabCount(); i++) {
              String title = showTabNames ? getComponentAt(i).getName() : "";
              setTitleAt(i, title);
          }
      }
docs: Sets whether or not the tab names should be shown.
  
  @param showTabNames {@code true} if the tab names should be shown, {@code false} otherwise.
  @since 2.4.0