// "Exer1b.java" - Exercise on Objects
//
// Modify this program to slide the happy face to each corner of the screen.
// Start the face in the lower-left corner and slide it to the upper-left 
// then upper-right then lower-right and then back to lower-left corner.
// Assume the radius of the happy face is 50.  Use applet's getSize ()
// to determine the applet's height and width.

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

public class Exer1b extends Applet
{
    public void paint (Graphics g)
    {
	int width = getSize ().width;
	int height = getSize ().height;
	
	HappyFace.show (g);             // Show the happy face
	for (int i = 100 ; i < 200 ; i++)
	{
    	try { Thread.sleep (100); }    // Wait a bit
    	catch (InterruptedException e) { ; }
		HappyFace.move (i, 100, g, getBackground ());
	    
	}
    } // paint method
} // Exer1b class
