/home/cdesrivi/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 private void paintTheImage() {
20 SPainter klee = new SPainter("OrangePlus" ,600,600);
21 SRectangle plus = new SRectangle(500,100);
22 klee.setColor(Color.ORANGE);
23 klee.paint(plus);
24 klee.tr();
25 klee.paint(plus);
26
27 }
28
29 public OrangePlus() {
30 paintTheImage();
31 }
32
33 public static void main(String[] args) {
34 SwingUtilities.invokeLater(new Runnable() {
35 public void run() {
36 new OrangePlus();
37 }
38 });
39 }
40
41 }