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

public class CreditsUI extends JFrame{
   public static final int WIDTH = 500;
   public static final int HEIGHT = 500;

   public CreditsUI(){
      super();

      setSize( WIDTH, HEIGHT );
      setTitle("Credits - Freedom in the Galaxy");

      // before using as something to be called from another
      // class, change the system.exit(0) line to dispose();
      addWindowListener( new WindowAdapter(){
         public void windowClosing(WindowEvent e){
            System.exit(0);
         }
      });
	

      Container content = getContentPane();


      content.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                contentMouseClicked(evt);
            }

      });


      content.setBackground( Color.black );
      content.setLayout( new BorderLayout() );
      JLabel names = new JLabel();
      names.setText(creds);
      content.add( names, BorderLayout.CENTER );

      setVisible( true );


   }

   public static void main(String args[]){
      CreditsUI it = new CreditsUI();
      it.setVisible(true);
   }

   private void contentMouseClicked(java.awt.event.MouseEvent evt) {
      System.exit(0);
   }

   public static final String creds = "<html><font color = \"lime\">" +
      " <center><b>" +
      " CREDITS<br><br>" +
      " Dr. Clinton Jeffery, faculty advisor<br>" +
      " James M Burke, Galactic and Province<br>" +
      " Roberto B. Marquez, Rebellion and Planet Loyalty<br>" +
      " Andrew A. Butler<br>" +
      " Raymond A. Lara<br>" +
      " David B. Hindman, Missions<br>" +
      " Brendan Shaughnessy, Combat<br>" +
      " Aileen Platt, Game Initialization," +
      " <font color=\"red\">I made this screen!</font><br>" + 
      " Joe Lau :P<br>" +
      " Samuel Cordova, Movement and Search<br>" +
      " Jesse Eyerman, Movement and Search<br>" +
      " Amelia Apolonio, Game Turns<br>" +
      " Carrie Hazelton, Game Turns<br>" +
      " Joseph Sanders, Galactic and Province<br>" +
      " Jon Havstad, Movement and Search<br>" +
      " Qutaiba Mahmoud, Movement and Search<br>" +
      " M. Kemp, Combat<br>" +
      " Denise Feddersen, Galactic and Province, game map<br>" +
      " Leon Ross, Missions<br>" +
      " Stan Vinyard, Rebellion<br>" +
      " David Pape, Galactic and Province... Yeah, that's it...<br>" +
      " Lauren Hamburg...Sorry, went to go have a beer instead :) <br>" +
      " </b></center></font></html>";


} // end class CreditsUI
