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