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("RedCross",600,600); SRectangle box = new SRectangle(500,100); klee.setColor(Color.RED); klee.paint(box); box.resetWidth(500); box.resetHeight(100); klee.setColor(Color.RED); klee.paint(box); } public RedCross(){ paintTheImage(); } public static void main (String[]args) { SwingUtilities.invokeLater(new Runnable(){ public void run(){ new RedCross(); } }); } }