import java.awt.*;
import java.awt.image.BufferedImage;
import javax.swing.*;

/**
 * Image class used for loading images.
 *
 * @author Kyle Harris.
 * 			L. Preston Sego III
 * 			//Influenced by an Online resource
 *         Created Apr 12, 2008.
 */
public class ImageClass extends JPanel {
	
    /**
     * The image.
     */
    BufferedImage image;
    
    /**
     * The constructor.
     *
     * @param image
     */
    public ImageClass(BufferedImage image) {
        this.image = image;
    }

    /**
     * the Painting
     * @param graphics Graphics
     */
    @Override
	protected void paintComponent(Graphics graphics) {
        graphics.drawImage(this.image, 0, 0, this);
    }
}