<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

/** This main program was used to create the window that is on
    slide 4 of the lecture on GUIs. */
public class Simple extends JFrame{

 public static void main(String args[]) {
  JFrame jf= new Simple();
  jf.setTitle("GUI Demo");
  
  Container contentPane= jf.getContentPane();
  contentPane.add(new GUI());
  jf.pack();
  jf.show();
 }
 
 
 
}
</pre></body></html>