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