/home/sjenks/NetBeansProjects/CS1/src/npw/OrangePlus.java
 1 /*
 2  * Program to paint an Orange Plus sign using only one regtangel mutiple times
 3  * in npw.  
 4 */
 5 package npw;
 6 
 7 import java.awt.Color;
 8 import javax.swing.SwingUtilities;
 9 import painter.SPainter;
10 import shapes.SRectangle;
11 
12 /**
13  *
14  * @author sjenks
15  */
16 public class OrangePlus {
17 
18     //THE SOLUTION TO THE OrangeCross PROBLEM
19     private void paintTheImage() {
20         SPainter klee = new SPainter("OrangePlus",600,600);
21         SRectangle Plus = new SRectangle(500,100);
22         klee.setColor(Color.ORANGE);
23         klee.paint(Plus);
24         klee.tr();
25         klee.setColor(Color.ORANGE);
26         klee.paint(Plus);
27         klee.tl();
28        
29     }
30     
31     // REQUIREDINFRASTRUCTURE
32     
33     public OrangePlus(){
34         paintTheImage();
35     }
36     
37     public static void main(String[] args) {
38        SwingUtilities.invokeLater(new Runnable() {
39            public void run(){
40                OrangePlus orangePlus = new OrangePlus();
41             }
42         });
43     }
44      
45     
46 }
47