if (! isSelected || tabPlacement != SwingConstants.RIGHT) {
g.drawLine(x + 2, y + h - 1, x + w - 3, y + h - 1);  g.setColor(darkShadow);  g.drawLine(x + w - 1, y, x + w - 1, y + h - 3);   g.drawLine(x + w - 1, y + h - 2, x + w - 3, y + h);   g.drawLine(x + 2, y + h, x + w - 4, y + h);
  protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex,                                int x, int y, int w, int h, boolean isSelected)  {    Color saved = g.getColor();    if (! isSelected || tabPlacement != SwingConstants.TOP)      {        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);      }    if (! isSelected || tabPlacement != SwingConstants.LEFT)      {        g.setColor(darkShadow);        g.drawLine(x + w, y, x + w, y + h);        g.setColor(shadow);        g.drawLine(x + w - 1, y + 1, x + w - 1, y + h - 1);      }    if (! isSelected || tabPlacement != SwingConstants.RIGHT)      {        g.setColor(lightHighlight);        g.drawLine(x, y, x, y + h);      }    if (! isSelected || tabPlacement != SwingConstants.BOTTOM)      {        g.setColor(lightHighlight);        g.drawLine(x, y, x + w, y);      }    g.setColor(saved);  }