import java.awt.*; // Needed for window and graphics (explained in COMP1406) import javax.swing.*; // Needed for window and graphics (explained in COMP1406) import java.awt.event.*; // This application simulates robots attracted to beacons in a window public class RobotSimulation2 { // This variable stores the panel that displays the robots and beacons // (This is a topic discussed in COMP1406 course) public static RobotEnvironmentPanel2 envPanel; public static Robot[] robots; // an array to hold the robots public static Beacon[] beacons; // an array to hold the beacons public static Beacon grabbed; // The beacon that the user just grabbed public static void startSimulation() { while(true) { for (int i=0; i