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