@Override
     protected void paintTabBorder( Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected){
       Graphics2D g2D = (Graphics2D)g;    

        switch( tabPlacement ){
           case LEFT: 
           case RIGHT:        
           case BOTTOM:
               /* codigo para estos tabs */
               break;

           case TOP:
           default:           
               xp = new int[]{ x, 
                               x,
                               x+4,
                               x+w+5,
                               x+w+5,
                               x+w,
                               x+w,
                               x
               };
               yp = new int[]{ y+h,
                               y+4,
                               y,
                               y,
                               y+5,
                               y+10,
                               y+h,
                               y+h
               };
             break;
       }

        shape = new Polygon( xp, yp, xp.length );

       if ( isSelected ){
            g2D.setColor( new Color(60,127,177) );
            g2D.drawPolyline( xp , yp , xp.length - 1 );
       }else{
           g2D.setColor( new Color(137,140,149) );
           g2D.drawPolyline( xp , yp , xp.length );
       }
     }