package npw; import painter.SPainter; import shapes.SRectangle; import java.awt.Color; import javax.swing.SwingUtilities; public class RedX { private void PaintTheImage(){ SPainter will = new SPainter("red", 600,600); SRectangle RedX = new SRectangle(450,100); will.setColor(Color.red); will.tl(45); will.paint(RedX); SRectangle RedX2 = new SRectangle(450,100); will.setColor(Color.red); will.tr(90); will.paint(RedX2); } public RedX(){ PaintTheImage(); } public static void main(String[] args){ SwingUtilities.invokeLater(new Runnable() { public void run() { new RedX(); } }); } }