RedCross.java
/* 
 * Program to paint a red cross in the context of the Nonrepresentational 
 * Painting World, NPW. 
 */

package npw;

import java.awt.Color;
import javax.swing.SwingUtilities;
import painter.SPainter;
import shapes.SRectangle;

public class RedCross {


    private void paintTheImage() {
        SPainter klee = new SPainter("RedCross", 600,600);
        SRectangle cross = new SRectangle(500, 100);
        klee.setColor(Color.RED);
        klee.paint(cross);
        klee.tl();
        klee.paint(cross);

    }

    //REQUIRED INFRASTRUCTURE

    public RedCross() {
        paintTheImage();
    }

    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                new RedCross();
            }
        });
    }
}