/* Author: James Tam Version: 2015 Learning objective: distinguishing GUI components when a GUI event occurs by using the mechanism provided by existing Java classes (order in which the component was added to the container). */ public class Driver { public static final int WIDTH = 800; public static final int HEIGHT = 600; public static void main(String [] args) { MyFrame aFrame = new MyFrame (); aFrame.setSize(WIDTH,HEIGHT); aFrame.setVisible(true); } }