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