paintTabArea(g, tabPane.getTabPlacement(), tabPane.getSelectedIndex());
int placement = tabPane.getTabPlacement(); g.setColor(highlight); if (placement == SwingUtilities.TOP || placement == SwingUtilities.BOTTOM) g.fillRect(currentScrollOffset, 0, tabAreaRect.width, tabAreaRect.height); else g.fillRect(0, currentScrollOffset, tabAreaRect.width, tabAreaRect.height);  paintTabArea(g, placement, tabPane.getSelectedIndex());
      public void paint(Graphics g, JComponent c)      {        paintTabArea(g, tabPane.getTabPlacement(), tabPane.getSelectedIndex());      }