// ASSIGNMENT 4
// SpaceshipImage: draws a spaceship.
// Compare to the Madeleine class in Savitch,
// p. 954 (Madeleine.java)

// These import statements allow you to do graphics.
import javax.swing.*;
import java.awt.*;

public class SpaceshipImage extends JFrame
{
  // Main method: simply creates the image.
  // ---- (Do not modify) ----
  public static void main(String args[])
  {
		SpaceshipImage pic = new SpaceshipImage();
		pic.setVisible(true);
	}
	
	// Constructor: sets up the graphics window
  // ---- You must update this method according to the comments ----
	public SpaceshipImage()
	{
		setSize(400, 400); // Do not change.
		// This is where you should 
		//  1) set the title of the window and 
		//  2) specify the background color.
	}
	
	// paint: main control for what the image looks like
	// This method is called every time the window is
	// "uncovered" or "raised".
	public void paint(Graphics g)
	{
		super.paint(g);  // Leave this in.
		
		// --- Now add your own drawing commands    ---- //
		//     to create your own spaceship image.       //
		//     Be sure to group your code into           //
		//     readable, commented blocks.               //
		// See Savitch p. 957-8, 962 for useful methods. //
		// You may create your own colors, as well       //
		// (see p. 970 - 973).                           //

	}
}
