import java.applet.*;
/*
<applet code="DrawingApp" width=200 height=200>
</applet>
*/
{
{
for(int i=0;i<=250;i++)
{
g.setColor(c1);
g.drawRect(250i,250i,100i,100i);
g.drawOval(100i,100i,50i,50i);
g.drawLine(50i,20i,10i,10i);
}
}
}
Java applet program that allows the user to draw lines, rectangles and ovals
Reviewed by
on
September 05, 2019
Rating:
No comments: