import javax.swing.*;    // explain 1
   
   /**
    * Adapted from Sun's Swing Tutorial.
    * Created on Sep 24, 2004
    * For Quiz #1, September 28, 2004
    * @author Robert Futrelle
    */
   public class HelloWorldSimplest {   // explain 2
   
    public static void main(String[] args) {   // explain 3 
      JFrame frame = new JFrame("HelloWorldSimplest -- Swing");   // explain 4
   
      //Add the ubiquitous "Hello World" label.
      JLabel label = new JLabel("Hello World");   // explain 5
      frame.getContentPane().add(label);   // explain 6
  
      //Display the window.
      frame.pack();   // explain 7
      frame.setVisible(true);   // explain 8
      }
  }