Program #42

Code

   
    /// Name: Afaf Nabeeha
    /// Period: 7
    /// Program Name: A Boring Window
    /// File Name: Boring Window.java
    /// Date Finished: 11/9/2015 public class BoringWindow

          import javax.swing.*;
          public class BoringWindow extends JFrame
          {
              public static void main( String[] args )
              {
                  JFrame f = new BoringWindow();
                  f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
                  f.setSize(300, 200);
                  f.setVisible(true);
              }
          }

                      
    

Picture of the output

Assignment 42