drawRoundRect (50,50,100,200,10,10);
fillRoundRect (x,y,width,height,cornerwidth,cornerheight);
fillRoundRect (50,50,100,200,10,10);
draw3DRect (x,y,width,height,braise);
draw3DRect (50,50,100,200,TRUE);
// raised rectangle
draw3DRect (50,50,100,200,FALSE);
// indented rectangle
drawOval (x,y,width,height);
1. Create a new polygon object.
Polygon p = new Polygon();
2. Add points to the polygon, repeating the first point to close the polygon. For example, the following code creates a triangle.
p.addPoint (100,100);
p.addPoint (150,200);
p.addPoint (50,200);
p.addPoint (100,100);
3. Draw or fill the polygon.
g.drawPolygon (p);
g.fillPolygon (p);
Modified 10-12-98. RSL