dots.java
1    package assignment1;
2    
3    import painter.SPainter;
4    import shapes.SCircle;
5    import javax.swing.*;
6    import java.awt.*;
7    
8    public class dots {
9        private void paintTheImage() {
10           SPainter b = new SPainter("Dotception", 600, 600);
11           SCircle James = new SCircle(100);
12           SCircle Misty = new SCircle(20);
13           SCircle Gionvanni = new SCircle(50);
14           SCircle Brook = new SCircle(75);
15           SCircle Jessie = new SCircle(120);
16           b.setColor(Color.green);
17           b.paint(James);
18           b.mbk(220);
19           b.setColor(Color.orange);
20           b.mrt(80);
21           b.paint(Brook);
22           b.mlt(160);
23           b.paint(Brook);
24           b.mrt(80);
25           b.mfd(440);
26           b.mlt(60);
27           b.setColor(Color.yellow);
28           b.paint(Misty);
29           b.mrt(120);
30           b.paint(Misty);
31           b.mlt(60);
32           b.setColor(Color.black);
33           b.mbk(220);
34           b.mrt(300);
35           b.paint(Jessie);
36           b.mlt(600);
37           b.paint(Jessie);
38           b.setColor(Color.red);
39           b.mrt(300);
40           b.mfd(100);
41           b.mrt(150);
42           b.paint(Gionvanni);
43           b.mlt(300);
44           b.paint(Gionvanni);
45       }
46   
47       public dots() {
48           paintTheImage();
49       }
50   
51       public static void main(String[] args) {
52           SwingUtilities.invokeLater(new Runnable() {
53               public void run() {
54                   new dots();
55               }
56           });
57       }
58   }
59   
60