/home/rkanin/NetBeansProjects/CS1/src/npw/OrangePlus.java |
1
2
3
4
5
6
7
8 package npw;
9
10 import java.awt.Color;
11 import javax.swing.SwingUtilities;
12 import painter.SPainter;
13 import shapes.SRectangle;
14
15
16
17 @author
18
19 public class OrangePlus {
20
21 private void paintTheImage() {
22 SPainter klee = new SPainter("OrangePlus",600,600);
23 SRectangle block = new SRectangle(500,100);
24 klee.setColor(Color.ORANGE);
25 klee.paint(block);
26
27 klee.tr();
28
29 klee.paint(block);
30
31 }
32
33
34
35 public OrangePlus() {
36 paintTheImage();
37 }
38
39 public static void main(String[] args) {
40 SwingUtilities.invokeLater(new Runnable() {
41 public void run() {
42 new OrangePlus();
43 }
44 });
45 }
46
47 }
48