public Shape createCheckMark(final int x,final int y,final int w,final int h){
  double xf=w / 12.0;
  double hf=h / 12.0;
  path.reset();
  path.moveTo(x,y + 7.0 * hf);
  path.lineTo(x + 2.0 * xf,y + 7.0 * hf);
  path.lineTo(x + 4.75 * xf,y + 10.0 * hf);
  path.lineTo(x + 9.0 * xf,y);
  path.lineTo(x + 11.0 * xf,y);
  path.lineTo(x + 5.0 * xf,y + 12.0 * hf);
  path.closePath();
  return path;
}

public Shape createCheckMark ( final int x , final int y , final int w , final int h ) { double xf = w / 12.0 ; double hf = h / 12.0 ; path . reset ( ) ; path . moveTo ( x , y + 7.0 * hf ) ; path . lineTo ( x + 2.0 * xf , y + 7.0 * hf ) ; path . lineTo ( x + 4.75 * xf , y + 10.0 * hf ) ; path . lineTo ( x + 9.0 * xf , y ) ; path . lineTo ( x + 11.0 * xf , y ) ; path . lineTo ( x + 5.0 * xf , y + 12.0 * hf ) ; path . closePath ( ) ; return path ; }
return a path for a check mark .
