Greeting Applet: Handling Action Events r We will now add code to process the pressing of the ENTER key r Event sources generate or trigger events and Event listeners process the generated events r For this applet, the TextField object inputLine is the event source and GreetingApplet is the event listener. r TextField inputline generates an action event C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 5-6© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 5 - 6 GreetingApplet: Handling Action Events We will now add code to process the pressing of the ENTER key. Event sources generate or trigger events and Event listeners process the generated events. For this applet, the TextField object inputLine is the event source and GreetingApplet is the event listener. TextField inputLine generates an action event