for (int i = tabs.size() - 1; i >= 0; i--)
setSelectedIndex(-1); for (int i = getTabCount() - 1; i >= 0; i--)
  public void removeAll()  {    for (int i = tabs.size() - 1; i >= 0; i--)      removeTabAt(i);  }