import java.awt.Color;
public class TrivialApplet extends java.applet.Applet {
public void paint(Graphics g) {
int rval, gval, bval;
for (int j = 30; j < (this.size().height -25); j += 30) {
rval = (int)Math.floor(Math.random() * 256);
gval = (int)Math.floor(Math.random() * 256);
bval = (int)Math.floor(Math.random() * 256);
g.setColor(new Color(rval,gval,bval));
g.fillRect(210,j,25,25);
g.setColor(Color.black);
g.drawRect(209,j-1,25,25);
}
for (int i = 30; i< (this.size().height -2); i += 30) {
rval = (int)Math.floor(Math.random() * 256);
gval = (int)Math.floor(Math.random() * 256);
bval = (int)Math.floor(Math.random() * 256);
g.setColor(new Color(rval,gval,bval));
g.fillRect(i,150,25,25);
g.setColor(Color.black);
g.drawRect(i-1,149,25,25);
}
}
}