1 /* 2 *Program to paint a blue dot in the context of the Nonrepresentational 3 * Painting World, NPW. 4 */ 5 package NPW; 6 import java.awt.Color; 7 import javax.swing.SwingUtilities; 8 import painter.SPainter; 9 import shapes.SCircle; 10 11 public class BlueDot { 12 //Solution to the Blue Dot Problem 13 private void paintTheImage() { 14 SPainter klee = new SPainter("Blue Dot", 600,600); 15 SCircle dot = new SCircle(200); 16 klee.setColor(Color.BLUE); 17 klee.paint(dot); 18 } 19 //REQUIRED INFRASTRUCTURE 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 } 34