@Override
  public void uninstallUI(JComponent c) {
    if (tabPane.getLayout() instanceof WrappingLayout) {
      tabPane.setLayout(((WrappingLayout)tabPane.getLayout()).myDelegate);
    }
    super.uninstallUI(c);
    myHiddenArrowButtons = null;
    myShowHiddenTabsButton = null;
  }
@Override
  public void uninstallUI(JComponent c)