/home/evankemp/NetBeansProjects/CS1/src/npw/OrangePlus.java
 1 /*
 2  * Program to paint an orange plus in the context of the Nonrepresentational 
 3  * Painting World, 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 evankemp
15  */
16 public class OrangePlus {
17     
18     // THE SOLUTION TO THE ORANGE PLUS PROBLEM
19     
20     private void paintTheImage() {
21         SPainter vangogh = new SPainter("Orange Plus",600,600);
22         SRectangle rec = new SRectangle(500,100);
23         vangogh.setColor(Color.ORANGE);
24         vangogh.paint(rec);
25         vangogh.tl();
26         vangogh.paint(rec);
27         
28     }
29     
30     // REQUIRED INFRASTRUCTURE
31     
32     public OrangePlus() {
33         paintTheImage();
34     }
35 
36     public static void main(String[] args) {
37         SwingUtilities.invokeLater(new Runnable() {
38             public void run() {
39                 new OrangePlus();
40             }
41         });
42     }
43     
44 }
45