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