1 package npw; 2 //Program to paint blue dot in the context of Nonrepresentational Painting World 3 import java.awt.Color; 4 import java.awt.Color; 5 import javax.swing.SwingUtilities; 6 import painter.SPainter; 7 import shapes.SCircle; 8 public class BlueDot { 9 private void paintTheImage() { 10 SPainter dave = new SPainter("Blue Dot", 600, 600); 11 SCircle dot = new SCircle(200); 12 dave.setColor(Color.BLUE); 13 dave.paint(dot); 14 } 15 public BlueDot() { 16 paintTheImage(); 17 } 18 19 public static void main(String[] args) { 20 SwingUtilities.invokeLater(new Runnable() { 21 public void run() { 22 new BlueDot(); 23 } 24 25 } ); 26 } 27 28 } 29