int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex);
int bottom = h - 1; int right = w - 1;  int tabCount = tabPane.getTabCount(); int currentRun = getRunForTab(tabCount, tabIndex);
  protected void paintBottomTabBorder(int tabIndex, Graphics g, int x, int y,      int w, int h, int btm, int rght, boolean isSelected)  {    int currentRun = getRunForTab(tabPane.getTabCount(), tabIndex);    if (shouldFillGap(currentRun, tabIndex, x, y))      {        g.translate(x, y);        g.setColor(getColorForGap(currentRun, x, y));        g.fillRect(1, h - 5, 3, 5);        g.fillRect(4, h - 2, 2, 2);        g.translate(-x, -y);      }        if (isSelected)    {      g.setColor(MetalLookAndFeel.getControlHighlight());      g.drawLine(x + 1, y, x + 1, y + h - 7);            g.drawLine(x + 1, y + h - 7, x + 7, y + h - 1);    }    g.setColor(MetalLookAndFeel.getControlDarkShadow());    g.drawLine(x, y, x, y + h - 7);    g.drawLine(x, y + h - 7, x + 6, y + h - 1);    g.drawLine(x + 6, y + h - 1, x + w, y + h - 1);    g.drawLine(x + w, y + h - 1, x + w, y);  }