import javax.swing.*;
import java.awt.*;
public class FirstSwingDemo 
{
	  public static final int WIDTH = 500;
	  public static final int HEIGHT = 400;
	 
   public static void main (String [] args)
	{
		 JFrame myWindow = new JFrame();
		 myWindow. setSize( WIDTH,HEIGHT);
		 
		 JLabel myLabel = new JLabel( "Please don't eat the daisies");
		 JLabel myLabel2 = new JLabel( "Today is Thursday");
		 
		 Container  contentPane = myWindow.getContentPane ();
		 contentPane.add(myLabel);
		 contentPane.add(myLabel2);
		 
		 WindowDestroyer listener = new WindowDestroyer();
		 myWindow.addWindowListener( listener);
		 
		 myWindow.setVisible ( true);
	}
	
	
}
