import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;

public class SimpleWindow3 {
	private static final int WIDTH = 300;
	private static final int HEIGHT = 100;
	
    private static void createAndShowGUI() {
        JFrame jFrame = new JFrame("Simple Window 3");
        jFrame.setSize(WIDTH, HEIGHT);
		jFrame.setLocation(100, 100);
		jFrame.setLayout(new FlowLayout());
        jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JLabel label = new JLabel("Hi! I'm Larry the label!");
        jFrame.getContentPane().add(label);
        jFrame.setVisible(true);
    }
 
    public static void main(String[] args) {
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
            }
        });
    }
}