int selected = tabPane.getSelectedIndex(); int tabPlacement = tabPane.getTabPlacement(); Rectangle bounds = getTabBounds(tabPane, selected);  hg.setColor(selectColor); int x = bounds.x; int y = bounds.y; int w = bounds.width; int h = bounds.height;  if (tabPlacement == TOP) hg.fillRect(x, y + h - 2, w, 30); else if (tabPlacement == LEFT) hg.fillRect(x + w - 1, y, 20, h); else if (tabPlacement == BOTTOM) hg.fillRect(x, y - h + 2, w, 30); else if (tabPlacement == RIGHT) hg.fillRect(x - 18, y, 20, h); else throw new AssertionError("Unrecognised 'tabPlacement' argument."); hg = null;
  protected void paintHighlightBelowTab()  {    // Nothing to do here, no highlight below the tab as far    // as I can see.  }