/home/akc/NetBeansProjects/CS1/src/npw/OrangePlus.java |
1
2
3
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
16
17 public class OrangePlus {
18
19
20
21 private void paintTheImage() {
22 SPainter klee = new SPainter("Orange Plus",600,600);
23 SRectangle box = new SRectangle(500,100);
24 klee.setColor(Color.ORANGE);
25 klee.paint(box);
26 klee.tl();
27 klee.paint(box);
28 klee.tr();
29 }
30
31
32
33 public OrangePlus() {
34 paintTheImage();
35 }
36
37 public static void main(String[] args) {
38 SwingUtilities.invokeLater(new Runnable() {
39 public void run() {
40 new OrangePlus();
41 }
42 });
43 }
44
45 }
46