/home/evankemp/NetBeansProjects/CS1/src/npw/OrangePlus.java |
1
2
3
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
15
16 public class OrangePlus {
17
18
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
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