g.setColor(MetalLookAndFeel.getControlHighlight()); g.drawLine(x, y + 1, x + w - 7, y + 1); g.drawLine(x + w - 7, y + 1, x + w - 1, y + 7); } g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x, y, x + w - 7, y); g.drawLine(x + w - 7, y, x + w - 1, y + 6); g.drawLine(x + w - 1, y + 6, x + w - 1, y + h - 1); g.drawLine(x + w - 1, y + h, x, y + h);
g.setColor(darkShadow); }   int lastIndex = lastTabInRun(tabCount, currentRun); if (tabIndex == lastIndex) { g.drawLine(0, bottom, right, bottom); }  if (isOcean && tabPane.getSelectedIndex() == tabIndex - 1) { g.setColor(oceanSelectedBorder); } g.drawLine(right - 6, 0, right, 6);  g.drawLine(0, 0, right - 6, 0);  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);
  protected void paintRightTabBorder(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, y + 1, x + w - 7, y + 1);            g.drawLine(x + w - 7, y + 1, x + w - 1, y + 7);    }    g.setColor(MetalLookAndFeel.getControlDarkShadow());    g.drawLine(x, y, x + w - 7, y);    g.drawLine(x + w - 7, y, x + w - 1, y + 6);    g.drawLine(x + w - 1, y + 6, x + w - 1, y + h - 1);    g.drawLine(x + w - 1, y + h, x, y + h);  }