if (tabIndex != 0)
if (tabIndex != firstIndex)
  protected void paintLeftTabBorder(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 the part of the above tab.    if (tabIndex != firstIndex && tabIndex > 0 && tabsOpaque)      {        Color c;        if (tabPane.getSelectedIndex() == tabIndex - 1)          c = selectColor;        else          c = getUnselectedBackground(tabIndex - 1);        g.setColor(c);        g.fillRect(2, 0, 4, 3);        g.drawLine(2, 3, 2, 3);      }    // Paint the highlight.    boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme;    if (isOcean)      {        g.setColor(isSelected ? selectHighlight : MetalLookAndFeel.getWhite());      }    else      {        g.setColor(isSelected ? selectHighlight : highlight);      }    // Slant.    g.drawLine(1, 6, 6, 1);    // Left.    g.drawLine(1, 6, 1, bottom);    // Top.    g.drawLine(6, 1, right, 1);    if (tabIndex != firstIndex)      {        if (isOcean)          {            g.setColor(MetalLookAndFeel.getWhite());          }        g.drawLine(1, 0, 1, 4);      }    // Paint border.    Color oceanSelectedBorder =      UIManager.getColor("TabbedPane.borderHightlightColor");    if (isOcean && isSelected)    {        g.setColor(oceanSelectedBorder);      }    else      {        g.setColor(darkShadow);      }    // Slant.    g.drawLine(1, 5, 6, 0);    // Top.    g.drawLine(6, 0, right, 0);    // Bottom.    int lastIndex = lastTabInRun(tabCount, currentRun);    if (tabIndex == lastIndex)      {        g.drawLine(0, bottom, right, bottom);      }    // Left.    if (isOcean)      {        if (tabPane.getSelectedIndex() == tabIndex - 1)          {            g.drawLine(0, 5, 0, bottom);            g.setColor(oceanSelectedBorder);            g.drawLine(0, 0, 0, 5);          }        else if (isSelected)          {            g.drawLine(0, 5, 0, bottom);            if (tabIndex != 0)              {                g.setColor(darkShadow);                g.drawLine(0, 0, 0, 5);              }          }        else if (tabIndex != firstIndex)          {            g.drawLine(0, 0, 0, bottom);          }        else          {            g.drawLine(0, 6, 0, bottom);          }      }    else      {        if (tabIndex != firstIndex)          {            g.drawLine(0, 0, 0, bottom);          }        else          {            g.drawLine(0, 6, 0, bottom);          }      }    g.translate(-x, -y);  }