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

package npw;

import java.awt.Color;
import javax.swing.*;

import painter.SPainter;
import shapes.SRectangle;

public class RedCross {
    private void paintTheImage() {
        SPainter klee = new SPainter("Red Cross", 600,600);
        SRectangle dot = new SRectangle(100, 500);
        klee.setColor(Color.RED);
        klee.paint(dot);
        dot = new SRectangle(500, 100);
        klee.paint(dot);

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