import java.awt.*;
import javax.swing.*;

import gui.*;
import slides.Slide;
import slides.SlideLayout;
import slides.SlidePresentation;


/**
 * The driver for a slide presentation
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class Driver
{
    /**
     * The entry point for the application
     *
     * @param args    The command-line arguments
     */
    public static void main(String[] args)
    {
	CloseableFrame     f;
	Container          contentPane;
	ImageIcon          icon;
	JLabel             image;
	JPanel             p;
	Slide              temp;
	Slide[]            slides;

	f = new CloseableFrame();
	contentPane = f.getContentPane();
	contentPane.setLayout(new BorderLayout());

	slides = new Slide[3];


	// Slide 0
	temp = new Slide("About the CS Department at JMU");
	    icon = new ImageIcon("chip.gif");
	    image = new JLabel(icon);
	    image.setBackground(Color.black);
	    temp.addBullet("Computing is at the core of many "+
			   "advances, including:", 
			   SlideLayout.LEVEL0);
	    temp.addBullet("The Internet", SlideLayout.LEVEL1);
	    temp.addBullet("Mobile Telecommunications", SlideLayout.LEVEL1);
	    temp.addBullet("Interactive TV", SlideLayout.LEVEL1);
	    temp.addBullet("Intelligent Devices", SlideLayout.LEVEL1);
	    temp.addBullet(image, SlideLayout.CENTER);
	    temp.addBullet("The CS Department at JMU teaches students to:", 
			    SlideLayout.LEVEL0);
	    temp.addBullet("Improve existing uses of computers", 
			    SlideLayout.LEVEL1);
	    temp.addBullet("Develop new uses of computers", 
			    SlideLayout.LEVEL1);
	slides[0] = temp;


	// Slide 1
	temp = new Slide("Special Programs");
	    icon = new ImageIcon("acm.gif");
	    image = new JLabel(icon);
	    image.setBackground(Color.black);
	    temp.addBullet("Honors Program", SlideLayout.LEVEL0);
	    temp.addBullet("Internship Program", SlideLayout.LEVEL0);
	    temp.addBullet("Interdisciplinary Minors", SlideLayout.LEVEL0);
	    temp.addBullet("Health Information Systems", SlideLayout.LEVEL1);
	    temp.addBullet("Telecommunications", SlideLayout.LEVEL1);
	    temp.addBullet("Various Clubs and Organizations", 
			    SlideLayout.LEVEL0);
	    temp.addBullet(image, SlideLayout.LEVEL1);
	    temp.addBullet("Independent Studies and Directed Research", 
			    SlideLayout.LEVEL0);
	slides[1] = temp;




	// Slide 2
	temp = new Slide("Career Opportunities");
	    temp.addBullet("Graduates typically become:",
				SlideLayout.LEVEL0);
	    temp.addBullet("Programmers", SlideLayout.LEVEL1);
	    temp.addBullet("Software Engineers", SlideLayout.LEVEL1);
	    temp.addBullet("Recent graduates have worked for:", 
			    SlideLayout.LEVEL0);
	    temp.addBullet("AT&T", SlideLayout.LEVEL1);
	    temp.addBullet("Capital One", SlideLayout.LEVEL1);
	    temp.addBullet("GTE", SlideLayout.LEVEL1);
	    temp.addBullet("IBM", SlideLayout.LEVEL1);
	slides[2] = temp;




	contentPane.add(new SlidePresentation(slides)); 
	//contentPane.add(new SlideShow(slides));
	f.setSize(600,800);
	f.show();
	f.setBackground(Color.black);
	f.setForeground(Color.white);

    }

}
