/** * Author: Josiah Yoder et al. * Class: SE1021-031 * Date: 1/7/14 10:31 AM * Lesson: Week 4, Day 1 */ package start4_1; import javax.swing.JFrame; import javax.swing.JLabel; import java.awt.FlowLayout; public class SimpleWindow extends JFrame { private final static int WIDTH = 250; private final static int HEIGHT = 100; public static void main(String[] args) { JFrame gui = new SimpleWindow(); } public SimpleWindow() { setTitle("Dog and Pony Show"); setSize(WIDTH, HEIGHT); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setLayout(new FlowLayout()); add(new JLabel("Dog")); setVisible(true); } }