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