// "Exer3aDrv.java" - Exercise on Inheritance
//
// Modify this program to change the radius of happy face as it moves.  The
// face should increase in size as it moves right and decrease in size as
// it moves left.

import java.applet.*;
import java.awt.*;

public class Exer3aDrv extends Applet
{
    public void paint (Graphics g)
    {
	Exer3a face;
	int width = getSize ().width;
	int height = getSize ().height;
	
	face = new Exer3a (50, 100);
	face.show (g);          // Show the happy face
	for (int x = 50 ; x < width - 50 ; x++)
	{
		face.setRadius(x/4, g, getBackground());
		face.y-=x;
		face.move (x, 100, g, getBackground ());
	} // for
    } // paint method
} // Exer3aDrv class
