// COBOL Programmers Swing With Java - copyright 2005 Doke, Hardgrave, & Johnson // Chapter 10 - Graphical User Interfaces // Program to demonstrate GUI w/ no contents // CustomerGUIOne.java 1 JAN 05 import javax.swing.*; // import Swing package public class CustomerGUIOne extends JFrame // this class inherits methods from the JFrame class { // static variables to hold frame dimensions in pixels private static final int WIDTH = 275; private static final int HEIGHT = 170; public CustomerGUIOne() // constructor method defines frame { setTitle("New Customer"); // set the title of the frame setSize(WIDTH, HEIGHT); // set the frame size } // end constructor method public static void main(String [] args) // declare main() method { JFrame aCustomerGUIOne = new CustomerGUIOne(); // create the frame object aCustomerGUIOne.show(); // display the frame } // end main } // end class