/home/rkanin/NetBeansProjects/CS1/src/npw/BlueDot.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.SCircle;
14
15
16
17 @author
18
19 public class BlueDot {
20
21 private void paintTheImage() {
22 SPainter klee = new SPainter("Blue Dot",600,600);
23 SCircle dot = new SCircle(200);
24 klee.setColor(Color.BLUE);
25 klee.paint(dot);
26 }
27
28
29
30 public BlueDot() {
31 paintTheImage();
32 }
33
34 public static void main(String[] args) {
35 SwingUtilities.invokeLater(new Runnable() {
36 public void run() {
37 new BlueDot();
38 }
39 });
40 }
41
42 }
43