g.setColor(MetalLookAndFeel.getControlHighlight()); g.drawLine(x + 1, y + h, x + 1, y + 6); g.drawLine(x + 1, y + 6, x + 6, y + 1); g.drawLine(x + 6, y + 1, x + w - 1, y + 1); } g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y + h, x, y + 6); g.drawLine(x, y + 6, x + 6, y); g.drawLine(x + 6, y, x + w - 1, y); g.drawLine(x, y + h, x + w - 1, y + h);
g.setColor(oceanSelectedBorder); } else { g.setColor(darkShadow); }   g.drawLine(1, 5, 6, 0);  g.drawLine(6, 0, right, 0);  int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(0, bottom, right, bottom); }  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);
  protected void paintLeftTabBorder(int tabIndex, Graphics g, int x, int y,      int w, int h, int btm, int rght, boolean isSelected)  {    if (isSelected)    {      g.setColor(MetalLookAndFeel.getControlHighlight());      g.drawLine(x + 1, y + h, x + 1, y + 6);            g.drawLine(x + 1, y + 6, x + 6, y + 1);      g.drawLine(x + 6, y + 1, x + w - 1, y + 1);    }    g.setColor(MetalLookAndFeel.getControlDarkShadow());    g.drawLine(x, y + h, x, y + 6);    g.drawLine(x, y + 6, x + 6, y);    g.drawLine(x + 6, y, x + w - 1, y);    g.drawLine(x, y + h, x + w - 1, y + h);  }