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

/**
 * Welcome to the happy little window wherein the
 * evil Emperor appears to be horribly sad
 * about his overwhelming loss!
 * once finished, this window requires that the
 * associated image files be stored in the same 
 * directory as the tauntWindow.class file
 *
 * ~aplatt, game/ai team
 * 
 */

public class ELossWindow extends JFrame{
   public static final int WIDTH = 500;
   public static final int HEIGHT = 700;
   public static final String file1 = "emploss.jpg";
   public static final String taunt1 = "<html>Eeeeewwwwwwwwwwwwwwwwww!</html>";

   public ELossWindow(){
      super();
      setSize(WIDTH,HEIGHT);
      setTitle("Live In Fear");
      Container content = getContentPane();
      content.setBackground(Color.black);
      content.setLayout( new BorderLayout() );
      content.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                contentMouseClicked(evt);
            }

      });

       ImageIcon i = new ImageIcon(Toolkit.getDefaultToolkit().getImage(file1));
      
       JLabel picLabel = new JLabel(i);
       picLabel.setBounds(0,0,200,290);
       content.add(picLabel, BorderLayout.NORTH);

       String x = taunt1;

       
       JLabel messageLabel = new JLabel(x);
       messageLabel.setBounds(0,290,200, 50);
       content.add(messageLabel, BorderLayout.SOUTH);

      

    }

    private void contentMouseClicked(java.awt.event.MouseEvent evt) {
	CreditsUI creds = new CreditsUI();
        creds.show();
	this.dispose();
    }


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


}

