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