/home/ffrigin/NetBeansProjects/CS1/src/npw/OrangePlus.java
 1 /*
 2  * Program to paint a 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 ffrigin
16  */
17 public class OrangePlus {
18 
19     // THE SOLUTION TO THE ORANGEPLUS PROBLEM
20     
21     private void paintTheImage() {
22         SPainter klee = new SPainter("Orange Plus",600,600);
23         SRectangle reky = new SRectangle (500,100);
24         klee.setColor(Color.ORANGE);
25         klee.paint(reky);
26         klee.tl();
27         klee.paint(reky);
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         // TODO code application logic here
43     }
44 
45 }
46