paintTabArea(g, tabPane.getTabPlacement(), tabPane.getSelectedIndex()); paintContentBorder(g, tabPane.getTabPlacement(), tabPane.getSelectedIndex());
{ g.setColor(highlight); g.fillRect(tabAreaRect.x, tabAreaRect.y, tabAreaRect.width, tabAreaRect.height); paintTabArea(g, tabPlacement, index); }  paintContentBorder(g, tabPlacement, index);
  public void paint(Graphics g, JComponent c)  {    if (!tabPane.isValid())      tabPane.validate();    if (tabPane.getTabCount() == 0)      return;    if (tabPane.getTabLayoutPolicy() == JTabbedPane.WRAP_TAB_LAYOUT)      paintTabArea(g, tabPane.getTabPlacement(), tabPane.getSelectedIndex());    paintContentBorder(g, tabPane.getTabPlacement(), tabPane.getSelectedIndex());  }