public Shape createInternalDropShadowRounded(final int x,final int y,final int w,final int h){
  final double radius=h / 2;
  final int right=x + w;
  final double bottom=y + radius;
  path.reset();
  path.moveTo(x,bottom);
  path.quadTo(x,y,x + radius,y);
  path.lineTo(right - radius,y);
  path.quadTo(right,y,right,bottom);
  path.lineTo(right - 1,bottom);
  path.quadTo(right - 2,y + 2,right - radius - 1,y + 2);
  path.lineTo(x + radius + 1,y + 2);
  path.quadTo(x + 2,y + 2,x + 1,bottom);
  path.closePath();
  return path;
}

public Shape createInternalDropShadowRounded ( final int x , final int y , final int w , final int h ) { final double radius = h / 2 ; final int right = x + w ; final double bottom = y + radius ; path . reset ( ) ; path . moveTo ( x , bottom ) ; path . quadTo ( x , y , x + radius , y ) ; path . lineTo ( right - radius , y ) ; path . quadTo ( right , y , right , bottom ) ; path . lineTo ( right - 1 , bottom ) ; path . quadTo ( right - 2 , y + 2 , right - radius - 1 , y + 2 ) ; path . lineTo ( x + radius + 1 , y + 2 ) ; path . quadTo ( x + 2 , y + 2 , x + 1 , bottom ) ; path . closePath ( ) ; return path ; }
return a path for a rounded internal drop shadow . this is used for progress bar tracks and search fields .
