tabPane.setSelectedIndex(getPreviousTabIndexInRun(tabPane.getTabCount(), current));
current = getPreviousTabIndexInRun(tabPane.getTabCount(), current);  if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT) scrollTab(current, tabPane.getTabPlacement());  tabPane.setSelectedIndex(current);
  protected void selectPreviousTabInRun(int current)  {    tabPane.setSelectedIndex(getPreviousTabIndexInRun(tabPane.getTabCount(),                                                      current));  }