/* GUI04.java David Klick CIS 160 2004-09-27 Restructuring to inherit JFrame */ import javax.swing.JFrame; import javax.swing.SwingUtilities; public class GUI04 extends JFrame { public GUI04() { SwingUtilities.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); } private void createAndShowGUI() { setTitle("Inheriting JFrame"); setSize(300, 200); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); } public static void main(String[] args) { GUI04 app = new GUI04(); } }