1 /* 2 * Program to paint a blue dot in the context of the Nonrepresentational painting world, NPW 3 */ 4 5 package npw; 6 7 import painter.SPainter; 8 import shapes.SCircle; 9 10 import javax.swing.*; 11 import java.awt.*; 12 13 public class BlueDot { 14 //The solution to the blue dot problem 15 private void paintTheImage(){ 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 //REQUIRED INFRASTRUCTURE 22 public BlueDot(){ 23 paintTheImage(); 24 } 25 26 public static void main(String [] args){ 27 SwingUtilities.invokeLater(new Runnable() { 28 @Override 29 public void run() { 30 new BlueDot(); 31 } 32 }); 33 } 34 } 35