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