Online Software Educational Training - IT Tutorials - Online Education Training for Computer Software


Home

JAVA APPLET

Drawing Polygons

 Using drawPolygon() and fillPolygon() method

void drawPolygon(int x[ ], int y[ ], int numPoints)

void fillPolygon(int x[ ], int y[ ], int numPoints)

Here is an example code to draw a polygon






Previous

Next