Sample 05

 

This is a graphical, event-driven, windows program that captures and displays order data from the user. The application source file contains a FrameWindow class that provides exit handling features to properly close a window and a static (class) method to permit a window to be centered on the screen. The App class extends the FrameWindow class to capture order data from the user and display it in a subwindow (defined by the Detail class). A MessageWindow class is also defined for a modal dialog box in which messages may be displayed.

To run the program, you must be familiar with how to run Java sample code using a "test" project. If you already have a test project, copy and paste the source statements of this Sample05.txt file into the App.java source file of your test project. Then, re-build the test project and launch its App class.