RedCross.java
package NPW;

import painter.SPainter;
import shapes.SRectangle;
import javax.swing.*;
import java.awt.*;

public class RedCross {
    //THE SOLUTION TO THE BLUE DOT PROBLEM
    private void paintTheImage() {
        SPainter klee = new SPainter("painter",600, 600);
        SRectangle Cross = new SRectangle(500, 100);
        klee.setColor(Color.RED);
        klee.paint(Cross);
       Cross.resetHeight(100);
       Cross.resetWidth(500);
        klee.paint(Cross);
    }
    // Required Infrastructure

    private RedCross() {
        paintTheImage();
    }

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