BlueDot.java
1    package npw;
2    
3    import painter.SPainter;
4    import shapes.SCircle;
5    
6    import javax.swing.*;
7    import java.awt.*;
8    
9    public class BlueDot {
10   
11       // THE SOLUTION TO THE BLUE DOT PROBLEM
12   
13       private void paintTheImage() {
14           SPainter klee = new SPainter("Blue Dot",600,600);
15           SCircle dot = new SCircle(200);
16           klee.setColor(Color.BLUE);
17           klee.paint(dot);
18       }
19   
20       // REQUIRED INFRASTUCTURE
21   
22       public BlueDot() {
23           paintTheImage();
24       }
25   
26       public static void main(String[] args) {
27           SwingUtilities.invokeLater(new Runnable() {
28              public void run() {
29                  new BlueDot();
30              }
31           });
32       }
33   }
34