package frames_contentPanes;


import java.awt.FlowLayout;
import java.awt.GridLayout;

import javax.swing.JLabel;


/**
 *  This program creates an instance of the
 *  SimpleWindow2 class, and tries to add two labels
 *  directly to the frame
 */

public class SimpleWindow1Demo {
   public static void main(String[] args)
   {
	   SimpleWindow myWindow = new SimpleWindow("Demo 1", 400, 100);
	   JLabel label1 = new JLabel("This is label 1");
	   JLabel label2 = new JLabel("This is label 2");
	   myWindow.add(label1);
	   myWindow.add(label2);
   }
}