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