	/***************************************************
	 * @file	HelloIcon.java
	 * @author	Chee Yap (yap@cs.nyu.edu)
	 * @date	Jan 24, 2003
	 * @purpose	A first example of Java Applet with Image
	 *		Shows a small gif image
	 * @notes	Visualization Class, Spring 2003
	 * $Id: HelloIcon.java,v 1.2 2003/03/09 21:23:26 yap Exp $
	 ***************************************************/

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

	public class HelloIcon
		extends Applet {
	  // Variables
	  private Image myImage;

	  // Init method
	  public void init() {
		setBackground(Color.yellow);
		setFont(new Font("Sanserif", Font.BOLD, 14));
		myImage = getImage(getDocumentBase(),
			"gifIcon.gif");
		add(new Label("Hello Icon!"));
		System.out.println("How is this Hello icon?");
	  }

	  // Paint method
	  public void paint(Graphics g) {
	     if (myImage != null)
	       g.drawImage(myImage, 10, 60, this);
	  }
	}

