protected void padSelectedTab(int tabPlacement,int selectedIndex){
  if (selectedIndex >= 0) {
    Rectangle selRect=rects[selectedIndex];
    Insets padInsets=getSelectedTabPadInsets(tabPlacement);
    selRect.x-=padInsets.left;
    selRect.width+=(padInsets.left + padInsets.right);
    selRect.y-=padInsets.top;
    selRect.height+=(padInsets.top + padInsets.bottom);
  }
}

protected void padSelectedTab ( int tabPlacement , int selectedIndex ) { if ( selectedIndex >= 0 ) { Rectangle selRect = rects [ selectedIndex ] ; Insets padInsets = getSelectedTabPadInsets ( tabPlacement ) ; selRect . x -= padInsets . left ; selRect . width += ( padInsets . left + padInsets . right ) ; selRect . y -= padInsets . top ; selRect . height += ( padInsets . top + padInsets . bottom ) ; } }
overridden to insure the same behavior in jdk 6 . 0 as in jdk 5 . 0 .
