/*
<applet code=drashapes width=700 height=500>
</applet>
*/
public class drashapes extends Applet
{
int as[]={50,59,70,67,50,45};
int bs[]={270,320,325,290,270,265};
int ass[]={150,160,190,210,180,160,150};
int bss[]={270, 320,325,290,270,280,275};
public void paint (Graphics g)
{
g.drawString(“Some of the drawing objects”,40,20);
g.drawLine(40,30,200,30);
g.drawRect(40,50,70,40);
g.fillRect(140,60,70,40);
g.drawRoundRect(240,60,70,40,10,20);
g.fillRoundRect(40,120,70,40,10,20);
g.drawOval(240,120,70,40);
g.draw3DRect(140,120,70,40,true);
g.drawOval(240,120,70,40);
g.fillOval(40,180,70,40);
g.drawArc(140,180,70,45,0,180);
g.fillArc(240,180,70,40,0,-180);
g.drawPolygon(as,bs,7);
g.fillPolygon(ass,bss,7);
}
}