/******************************************************************************
*  My third Java applet program to print Hello and name                           
*  Applet takes a name from the <param> tag within the <applet> tag in HTML
******************************************************************************/
import javax.swing.*;
import java.awt.*;

public class HelloApplet3 extends JApplet {

    private String name;

    public void init( )                     //Automatic called by Applet 
    {
        name = getParameter("message");     //get data from html Applet param

        name = "Hello " + name;             //append Hello before name

        setBackground(Color.black);
        setForeground(Color.white);
        setFont(new Font("Arial", Font.BOLD, 20));
    }

    public void paint(Graphics g)           //Automatic called by init() 
    {       
        g.drawString(name,  20, 90);        //write name at pixel x=20 y=90 
    }
}