import java.applet.Applet;
import java.awt.BorderLayout;
import java.awt.Label;
public class Main extends Applet {
Label m_titleLabel = new Label(getParameter("Title"));
public void init() {
setLayout(new BorderLayout());
add(BorderLayout.NORTH, m_titleLabel);
}
}
Writing and Running Java Applet, Demonstration