Question: Hello This code draws this stadium as is shown in the picture (attached files) I want to put a circle moving inside this stadium Please
Hello This code draws this stadium as is shown in the picture (attached files) I want to put a circle moving inside this stadium Please Please Thanks and regards

code\\
import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.*;
public class Animation extends JPanel { public static final Color DARK_GREEN = new Color(0x00, 0xC0, 0x00); public static final Color VERY_DARK_GREEN = new Color(0x00, 0x80, 0x00); public static void main(String[] a) { JFrame f = new JFrame(); f.setSize(800, 800); f.add(new Animation()); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setVisible(true); } //for green ground public void paint(Graphics g) { // g.setColor(LIGHT_GREEN); int x = 30,y=30; for(int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
