public class v2 extends java.applet.Applet
{
public void paint(Graphics g)
{
int i, m=50,n=50,mold=50, nold=50;
for (i=0; i<10; i=i+1)
{
m=m+3;
n=n+2*i;
g.drawRect(mold+4,nold+4, m,n);
mold=m;
nold=n;
}
}
}
You see some rectangles are drawing - within 200 x 300 pixels. See the height and the width in the html-source-code.
Enschede, 2000; updated March, 2003.