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