1 /* 2 *Program to paint a blue dot in the context of the Nonrepresentational 3 *Painting World, NPW. 4 */ 5 6 7 8 package npw; 9 10 import java.awt.Color; 11 import javax.swing.SwingUtilities; 12 import painter.SPainter; 13 import shapes.SCircle; 14 15 public class BlueDot { 16 17 18 // SOLUTION TO BLUE DOT PROBLEM 19 20 private void paintTheImage(){ 21 SPainter klee = new SPainter("Blue Dot",600,600); 22 SCircle dot = new SCircle(200); 23 klee.setColor(Color.BLUE); 24 klee.paint(dot); 25 } 26 27 // REQUIRED INFRASTRUCTURE 28 public BlueDot(){ 29 paintTheImage(); 30 31 } 32 33 public static void main(String[] args){ 34 SwingUtilities.invokeLater(new Runnable(){ 35 public void run(){ 36 new BlueDot(); 37 } 38 39 }); 40 } 41 } 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64