import java.awt.*;

/**
 * A simple example that uses objects of different kinds
 *
 * @author  Prof. David Bernstein, James Madison University
 * @version 1.0
 */
public class ObjectExample3
{
    public static void main(String[] args)
    {
       Color        purple;       
       Frame        window;

        // Construct a Color object that is JMU purple
        purple = new Color(69, 0, 132);        

        // Construct a Frame object
        window = new Frame();

        // Set the title of the Frame
        window.setTitle("CS159");     

        // Set the size of the Frame
        window.setSize(200, 200);
        
        // Set the background color of the Frame
        window.setBackground(purple);        

        // Make the Frame visible
        window.setVisible(true);
        
    }

}
