/*********************************************************
* SimpleWindow.java
* Dean & Dean
*
* This program displays a label in a window.
*********************************************************/
import javax.swing.*; // for JFrame, JLabel
import java.awt.*; // for FlowLayout

@SuppressWarnings("serial")
public class SimpleWindow extends JFrame {
	private static final int WIDTH = 300;
	private static final int HEIGHT = 100;

	// ******************************************************
	public SimpleWindow() {
		setTitle("Simple Window");
		setSize(WIDTH, HEIGHT);
		setLocation(100, 100);
		setLayout(new FlowLayout());
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		createContents();
		setVisible(true);
	} // end SimpleWindow constructor
	
	// ******************************************************
	private void createContents() {
		JLabel label = new JLabel("Hi! I'm Larry the label!");
		add(label);
	} // end createContents
	
	// ******************************************************
	public static void main(String[] args) {
		new SimpleWindow();
	} // end main
} // end class SimpleWindow