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