Ruler2.java

import java.awt.*;
import javax.swing.*;

/**
Applet to display a configurable text string.
*/
public class Ruler2 extends JApplet
{
    public void init()
    {
        Container contentPane = getContentPane();
        JLabel label = new JLabel("Bozoid rules!",
            SwingConstants.CENTER);
        String msg = getParameter("msg");
        if (msg != null)
            label.setText(msg);
        contentPane.add(label);
    }
}