/* 
 * Copyright (c) 1999-2002, Xiaoping Jia.  
 * All Rights Reserved. 
 */

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

/**
 *  A simple Java applet. It displays the greeting message "Hello from Venus!" graphically. 
 *  It consists of a text message and an image of the planet Venus. 
 */
public class HelloFromVenus extends Applet {

  public void paint(Graphics g) {
    Dimension d = getSize();
    g.setColor(Color.black);
    g.fillRect(0,0,d.width,d.height);
    g.setFont(new Font("Helvetica", Font.BOLD, 24));
    g.setColor(new Color(255, 215, 0)); // gold color
    g.drawString("Hello From Venus!", 40, 25);
    g.drawImage(getImage(getCodeBase(), "Venus.gif"),
                20, 60, this);
  }

}