protected void paintContentBorderRightEdge(Graphics g,int tabPlacement,int selectedIndex,int x,int y,int w,int h){
  Rectangle selRect=selectedIndex < 0 ? null : getTabBounds(selectedIndex,calcRect);
  g.setColor(shadow);
  if (tabPlacement != RIGHT || selectedIndex < 0 || (selRect.y < y || selRect.y > y + h)) {
    g.setColor(darkShadow);
    g.drawLine(x + w - 1,y,x + w - 1,y + h - 1);
  }
 else {
    g.setColor(darkShadow);
    g.drawLine(x + w - 1,y,x + w - 1,selRect.y);
    if (selRect.y + selRect.height < y + h - 2) {
      g.setColor(darkShadow);
      g.drawLine(x + w - 1,selRect.y + selRect.height,x + w - 1,y + h - 2);
    }
  }
}

protected void paintContentBorderRightEdge ( Graphics g , int tabPlacement , int selectedIndex , int x , int y , int w , int h ) { Rectangle selRect = selectedIndex < 0 ? null : getTabBounds ( selectedIndex , calcRect ) ; g . setColor ( shadow ) ; if ( tabPlacement != RIGHT || selectedIndex < 0 || ( selRect . y < y || selRect . y > y + h ) ) { g . setColor ( darkShadow ) ; g . drawLine ( x + w - 1 , y , x + w - 1 , y + h - 1 ) ; } else { g . setColor ( darkShadow ) ; g . drawLine ( x + w - 1 , y , x + w - 1 , selRect . y ) ; if ( selRect . y + selRect . height < y + h - 2 ) { g . setColor ( darkShadow ) ; g . drawLine ( x + w - 1 , selRect . y + selRect . height , x + w - 1 , y + h - 2 ) ; } } }
paint right contenr border edge
