/* * * Program to paint a blue dot in the context of the Nonrepresentational * Painting World, NPW */ package npw; import java.awt.Color; import javax.swing.SwingUtilities; import painter.SPainter; import shapes.SCircle; public class Bluedot { // Solution private void paintTheImage() { SPainter klee = new SPainter("Blue dot" ,600,600); SCircle dot = new SCircle(200); klee.setColor(Color.BLUE); klee.paint(dot); } //Infrastructure public Bluedot() { paintTheImage(); } public static void main (String [] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { new Bluedot(); } }); } }