package npw; import painter.SPainter; import shapes.SRectangle; import javax.swing.*; import java.awt.*; public class RedCross { private void paintTheImage() { SPainter painter = new SPainter("Red Cross", 600, 600); SRectangle Cross = new SRectangle(500, 100); painter.setColor(Color.RED); painter.paint(Cross); Cross = new SRectangle(100, 500); painter.paint(Cross); } // REQUIRED INFRASTRUCTURE public RedCross() { paintTheImage(); } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { new npw.RedCross(); } }); } }