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("The Blue Dot",600,600);
12           SCircle dot = new SCircle(200);
13           klee.setColor(Color.BLUE);
14           klee.paint(dot);
15       }
16       // REQUIRED INFRASTRUCTURE
17       public BlueDot() {
18           paintTheImage();
19       }
20       public static void main(String[] args) {
21           SwingUtilities.invokeLater(new Runnable() {
22               public void run() {
23                   new BlueDot();
24               }
25           });
26       }
27   }