1  import javax.swing.JFrame;
  2  
  3  /**
  4     This program shows a frame that is filled with two components.
  5  */
  6  public class FilledFrameViewer2
  7  {
  8     public static void main(String[] args)
  9     {
 10        JFrame frame = new FilledFrame();
 11        frame.setTitle("A frame with two components");
 12        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 13        frame.setVisible(true);
 14     }
 15  }