private Point findPointForIndex(int index)
Point findPointForIndex(int index)
  private Point findPointForIndex(int index)  {    int tabPlacement = tabPane.getTabPlacement();    int selectedIndex = tabPane.getSelectedIndex();    Insets insets = getSelectedTabPadInsets(tabPlacement);    int w = 0;    int h = 0;    if (tabPlacement == TOP || tabPlacement == BOTTOM)      {	if (index > 0)	  {	    w += rects[index - 1].x + rects[index - 1].width;	    if (index > selectedIndex)	      w -= insets.left + insets.right;	  }      }    else      {	if (index > 0)	  {	    h += rects[index - 1].y + rects[index - 1].height;	    if (index > selectedIndex)	      h -= insets.top + insets.bottom;	  }      }    Point p = new Point(w, h);    return p;  }