RedCross.java
package npw;

import painter.SPainter;
import shapes.SRectangle;

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

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

             }
     //REQUIRED INFRASTRUCTURE

             public RedCross() {
                 paintTheImage();
             }

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