/* Author: James Tam Version: 2015 Learning objective: distinguishing GUI components when reacting to events using the Java classes (accessing the container for the component which raised the event). */ 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); } }