triangles instead of a rectangle. Why?
int xPoints[] = {71, 78, 71, 78}; int yPoints[] = {147, 147, 130, 130}; g.fillPolygon(xPoints, ypoints, xPoints.length); Developer Felix Pahl supplied the answer in limerick form: o A developer (for details bored her) didn’t follow the polygon’s border so instead of right angles she got two triangles ’cause the endpoints were in the wrong order! You must put the points in the order you would encounter them in if you went round the polygon’s border. The filling algorithm is doing the right thing!