
Beginning Swing-Based Applications
When you begin all Swing-based applications, you must set the look and feel and add a WindowListener so that when a user clicks on the exit box, the program exits. Consider putting these items in as base class JxFrame derived from JFrame so that you don’t have to rewrite this