c = UIManager.getColor("TabbedPane.tabAreaBackground");
c = selectColor;
  protected void paintRightTabBorder(int tabIndex, Graphics g, int x, int y,      int w, int h, int btm, int rght, boolean isSelected)  {    g.translate(x, y);    int bottom = h - 1;    int right = w - 1;    int tabCount = tabPane.getTabCount();    int currentRun = getRunForTab(tabCount, tabIndex);    int firstIndex = tabRuns[currentRun];    // Paint part of the above tab.    if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque)      {        Color c;        if (tabPane.getSelectedIndex() == tabIndex - 1)          c = UIManager.getColor("TabbedPane.tabAreaBackground");        else          c = getUnselectedBackground(tabIndex - 1);        g.fillRect(right - 5, 0, 5, 3);        g.fillRect(right - 2, 3, 2, 2);      }    // Paint highlight.    g.setColor(isSelected ? selectHighlight : highlight);    // Slant.    g.drawLine(right - 6, 1, right - 1, 6);    // Top.    g.drawLine(0, 1, right - 6, 1);    // Left.    if (! isSelected)      {        g.drawLine(0, 1, 0, bottom);      }    // Paint border.    boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme;    Color oceanSelectedBorder =      UIManager.getColor("TabbedPane.borderHightlightColor");    if (isOcean && isSelected)      {        g.setColor(oceanSelectedBorder);      }    else    {        g.setColor(darkShadow);      }    // Bottom.    int lastIndex = lastTabInRun(tabCount, currentRun);    if (tabIndex == lastIndex)      {        g.drawLine(0, bottom, right, bottom);      }    // Slant.    if (isOcean && tabPane.getSelectedIndex() == tabIndex - 1)      {        g.setColor(oceanSelectedBorder);      }    g.drawLine(right - 6, 0, right, 6);    // Top.    g.drawLine(0, 0, right - 6, 0);    // Right.    if (isOcean && isSelected)      {        g.drawLine(right, 6, right, bottom);        if (tabIndex != firstIndex)          {            g.setColor(darkShadow);            g.drawLine(right, 0, right, 5);          }      }    else if (isOcean && tabPane.getSelectedIndex() == tabIndex - 1)      {        g.setColor(oceanSelectedBorder);        g.drawLine(right, 0, right, 6);        g.setColor(darkShadow);        g.drawLine(right, 6, right, bottom);      }    else if (tabIndex != firstIndex)      {        g.drawLine(right, 0, right, bottom);      }    else      {        g.drawLine(right, 6, right, bottom);      }    g.translate(-x, -y);  }