/home/ssingh6/NetBeansProjects/CS1/src/npw/OrangePlus.java
 1 /*
 2  * To change this license header, choose License Headers in Project Properties.
 3  * To change this template file, choose Tools | Templates
 4  * and open the template in the editor.
 5  */
 6 package npw;
 7 import java.awt.Color;
 8 import painter.SPainter;
 9 import shapes.SRectangle;
10 import javax.swing.SwingUtilities;
11 
12 /**
13  *
14  * @author ssingh6
15  */
16 public class OrangePlus {
17 
18     /** */
19     private void paintTheImage()
20     {
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         dot.setWidth(500);
26         dot.setHeight(100);
27         klee.setColor(Color.ORANGE);
28         klee.paint(dot);
29     }
30     public OrangePlus()
31     {
32         paintTheImage();
33     }
34     public static void main(String[]args)
35     {
36         SwingUtilities.invokeLater(new Runnable() {
37             public void run() {
38                 new OrangePlus();
39             }
40         });
41     }
42 
43             
44 }
45                 
46                 
47     
48     
49 
50 
51