import java.awt.*;
import javax.swing.*;

import javax.swing.JFrame;

/**
 * HelloButton.java
 * 
 * A simple program to illustrate some things about GUIs. 
 * Based on Pohl and McDowell, 'Java by Dissection' pp 270-271.
 * 
 * Simon Parsons
 * 15th October 2012
 *
 */
public class HelloButton{
	public static void main(String[] args) {
		JFrame frame = new JFrame("HelloButton");
		Container pane = frame.getContentPane();
		JButton hello = new JButton("Hello, world!");
		pane.add(hello);
		frame.pack();
		frame.setVisible(true);
	}
}
