import java.awt.*; import java.applet.*; public class GUI3 extends Applet{ public void paint(Graphics g) { int x = 50; int y = 50; int width = 5; int hight = 5; for(int i = 1;i <= 8;i++) { g.drawOval(x, y, width, hight); x-=15/2; y-=15/2; width+=15;…