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