g.drawLine(x + 1, y + h - 1, startgap - diff, y + h - 1); g.drawLine(endgap - diff, y + h - 1, x + w - 1, y + h - 1);
g.drawLine(x + 1, y + h - 2, startgap, y + h - 2); g.drawLine(endgap, y + h - 2, x + w - 2, y + h - 2);
  protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement,                                              int selectedIndex, int x, int y,                                              int w, int h)  {    Color saved = g.getColor();    int startgap = rects[selectedIndex].x;    int endgap = rects[selectedIndex].x + rects[selectedIndex].width;    int diff = 0;    if (tabPlacement == SwingConstants.BOTTOM)      {        if (tabPane.getTabLayoutPolicy() == JTabbedPane.SCROLL_TAB_LAYOUT)          {            Point p = findPointForIndex(currentScrollLocation);            diff = p.x;          }        g.setColor(shadow);        g.drawLine(x + 1, y + h - 1, startgap - diff, y + h - 1);        g.drawLine(endgap - diff, y + h - 1, x + w - 1, y + h - 1);        g.setColor(darkShadow);        g.drawLine(x, y + h, startgap - diff, y + h);        g.drawLine(endgap - diff, y + h, x + w, y + h);      }    else      {        g.setColor(shadow);        g.drawLine(x + 1, y + h - 1, x + w - 1, y + h - 1);        g.setColor(darkShadow);        g.drawLine(x, y + h, x + w, y + h);      }    g.setColor(saved);  }