import java.awt.*; import javax.swing.*; // This code is responsible for displaying the Robots in their environment public class RobotEnvironmentPanel extends JPanel { public static final int WIDTH = 800; public static final int HEIGHT = 600; private static Robot[] robots; public RobotEnvironmentPanel(Robot[] rArray) { robots = rArray; setPreferredSize(new Dimension(WIDTH, HEIGHT)); } // Display the image public void paintComponent(Graphics g) { super.paintComponent(g); // Display the beacons first for (int i=0; i