/**
  *  ==========================================================================  
  *  PeaceApplication2.java: Pease-on-Earth Application Program (Version 2).
  *  
  *  Here we create a frame and fill it with a conponent that can display text.
  *  Users can click on the text and move it. This functionality is enabled by
  *  a mouse-motion listener attached to the component.
  * 
  *  Written by: Mark Austin                                          June 2009 
  *  ==========================================================================  
  */

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class PeaceApplication2 {
   public static void main( String[] args ) {

      // Create graphical frame for the application

      JFrame frame = new JFrame( "Peace-on-Earth Application Program" );

      // Create PeaceComponent object ....

      PeaceComponent2 pc = new PeaceComponent2("Peace on Earth!");

      // Add PeaceComponent object to the frame; set frame paraemters.

      frame.add( pc );
      frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
      frame.setSize( 400, 200 );
      frame.setVisible( true );
   }
}
