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 /* 11 * Program to paint a blue dot in the context of the nonrepresentational 12 * Painting World, NPW 13 * 14 */ 15 16 //The solution to the blue dot problem 17 18 private void paintTheImage() { 19 20 SPainter klee = new SPainter("Blue Dot", 600, 600); 21 SCircle dot = new SCircle(200); 22 klee.setColor(Color.BLUE); 23 klee.paint(dot); 24 } 25 26 //Required infrastructure 27 28 public BlueDot() { 29 30 paintTheImage(); 31 32 } 33 34 public static void main(String[] args) { 35 36 SwingUtilities.invokeLater(new Runnable() { 37 @Override 38 public void run() { 39 new BlueDot(); 40 } 41 }); 42 43 } 44 45 46 } 47