The following text was written to the standard output stream when the Dots.java? program was executed from IntelliJ.
package npw;
import java.awt.Color;
import javax.swing.SwingUtilities;
import painter.SPainter;
import shapes.SCircle;
public class Dots {
// Dots
private void paintTheImage() {
SPainter dott = new SPainter("Dots", 600, 600);
SCircle Dot1 = new SCircle(30);
dott.setColor(Color.blue);
dott.paint(Dot1);
dott.mfd(75);
SCircle Dot2 = new SCircle(25);
dott.setColor(Color.BLACK);
dott.paint(Dot2);
dott.mfd(75);
SCircle Dot3 = new SCircle(20);
dott.setColor(Color.red);
dott.paint(Dot3);
dott.mfd(75);
SCircle Dot4 = new SCircle(15);
dott.setColor(Color.yellow);
dott.paint(Dot4);
dott.moveToCenter();
dott.setColor(Color.black);
dott.mbk(75);
dott.paint(Dot2);
dott.mbk(75);
dott.setColor(Color.red);
dott.paint(Dot3);
dott.mbk(75);
dott.setColor(Color.yellow);
dott.paint(Dot4);
dott.moveToCenter();
dott.mrt(100);
dott.setColor(Color.blue);
dott.paint(Dot1);
dott.mlt(200);
dott.paint(Dot1);
}
//REQUIRED INFRASTRUCTURE
public Dots() {
paintTheImage();
}
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable(){
public void run() {
new Dots();
}
});
}
}