/home/dmaslows/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 
 6 package npw;
 7 
 8 import java.awt.Color;
 9 import javax.swing.SwingUtilities;
10 import painter.SPainter;
11 import shapes.SRectangle;
12 
13 /**
14  *
15  * @author blue
16  */
17 public class OrangePlus {
18 // THE SOLUTION TO THE OrangePlus PROBLEM
19     
20 private void paintTheImage() {
21     SPainter klee = new SPainter("OrangePlus",600,600);
22     SRectangle dot = new SRectangle(500,100);
23     klee.setColor(Color.ORANGE);
24     klee.paint(dot);
25     klee.tl();
26     klee.paint(dot);
27 }
28 
29 // REQUIRED INFRASTRUCTURE
30 
31 public OrangePlus() {
32     paintTheImage();
33 }
34 
35     public static void main(String[] args) {
36         SwingUtilities.invokeLater(new Runnable() {
37             public void run() {
38                 new OrangePlus();
39             }
40         });
41     }
42     
43 }
44