public final synchronized void setTabLayoutPolicy(final int policy) {
    tabbedPane.setTabLayoutPolicy(policy);
    final int index = tabbedPane.getSelectedIndex();
    if (index != -1) {
      tabbedPane.scrollTabToVisible(index);
    }
  }
public final synchronized void setTabLayoutPolicy(final int policy)