public class RectTest extends MyFrame {
    public void run() {
        setColor(255,0,0);
        fillRect(30, 40, 50, 100);
        setColor(0,255,0);
        fillRect(130, 40, 50, 100);
        setColor(0,0,255);
        fillRect(30, 200, 150, 10);
    }
}
