package frames_contentPanes;


import java.awt.FlowLayout;
import java.awt.GridLayout;

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 SimpleWindow3Demo {
   public static void main(String[] args)
   {
	   SimpleWindow myWindow = new SimpleWindow("Demo 3", 400, 100);
	   JOptionPane.showMessageDialog(null, 
			   myWindow.getLayout(),
			   "frame layout", 
			   JOptionPane.INFORMATION_MESSAGE);
	   JOptionPane.showMessageDialog(null, 
			   myWindow.getContentPane().getLayout(),
			   "frame layout", 
			   JOptionPane.INFORMATION_MESSAGE);   

   }
}