import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;

@SuppressWarnings("serial")
public class SimpleWindow2 extends JFrame  
{  
	private static final int WIDTH = 300;
	private static final int HEIGHT = 100;
	
	SimpleWindow2()   
	{  
		setTitle("Simple Window 2");
		setBounds(100, 100, WIDTH, HEIGHT);  
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
		setLayout(new FlowLayout());
		createContents();
		setVisible(true);   
	}  

	// ******************************************************
	private void createContents() {
		JLabel label = new JLabel("Hi! I'm Larry the label!");
		add(label);
	} // end createContents

	public static void main(String args[]) {
		Runnable run = new Runnable()
		{
			public void run()
			{
				new SimpleWindow2();
			}
		};  
		SwingUtilities.invokeLater(run);
	}  
}