import javax.swing.*;
public class Welcome
{
	public static void main(String[] argv)
	{
		JOptionPane.showMessageDialog(
			null,
			"Welcome to the wonderful world of Java!",
			"Welcome, new Programmer",
			JOptionPane.PLAIN_MESSAGE);
		System.exit(0);
	}
}


import java.awt.*;
import java.applet.*;
public class WelcomeApplet extends Applet
{
	Label textLabel;
	public void init()
	{
		textLabel = new Label("Welcome to the wonderful world of Java!");
		textLabel.setAlignment(Label.CENTER);
		this.add(textLabel);
	}
}

