if (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];   if (tabIndex != firstIndex) { Color c; if (tabPane.getSelectedIndex() == tabIndex - 1) c = selectColor; else c = UIManager.getColor("TabbedPane.unselectedBackground"); g.setColor(c); g.fillRect(2, 0, 4, 3); g.drawLine(2, 3, 2, 3); }   boolean isOcean = MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme; if (isOcean) { g.setColor(isSelected ? selectHighlight : MetalLookAndFeel.getWhite()); } else { g.setColor(isSelected ? selectHighlight : highlight); }  g.drawLine(1, 6, 6, 1);  g.drawLine(1, 6, 1, bottom);  g.drawLine(6, 1, right, 1); if (tabIndex != firstIndex) { if (isOcean) { g.setColor(MetalLookAndFeel.getWhite()); } g.drawLine(1, 0, 1, 4); }   Color oceanSelectedBorder = UIManager.getColor("TabbedPane.borderHightlightColor"); if (isOcean && isSelected)
  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);  }