正在加载图片...
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
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有