BlueDot.java
1    package npw;
2    
3    import java.awt.Color;
4    import javax.swing.SwingUtilities;
5    import painter.SPainter;
6    import shapes.SCircle;
7    
8    public class BlueDot
9    {
10       //The solution to the blue dot problem
11       private void paintTheImage()
12       {
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       //Required Infrastructure
19       public BlueDot()
20       {
21           paintTheImage();
22       }
23   
24       public static void main(String[] args)
25       {
26           SwingUtilities.invokeLater(new Runnable()
27           {
28               public void run()
29               {
30                   new BlueDot();
31               }
32           });
33       }
34   }
35