|
ROGERS CADENHEAD
My Projects
Workbench
SportsFilter
Drudge Retort
Watching the Watchers
RSS Spec
My Java Books
Teach Yourself Java 6 in 21 Days
Teach Yourself Programming with Java in 24 Hours, Fourth Edition
Teach Yourself Java 2 in 21 Days, Fourth Edition
Teach Yourself Java 2 in 21 Days Pro Reference Edition, Third Edition
Teach Yourself Java 2 in 24 Hours, Third Edition
My Weblogging Books
Movable Type 3 Bible Desktop Edition
Radio UserLand Kick Start
My Internet Books
Teach Yourself FrontPage 2003 in 24 Hours
|
Day 13: Responding to User Input in an Applet
NOTES AND CORRECTIONS
- Pages 319-331: The mouse event-handling methods used in the Spots
and Lines examples cause deprecation warnings to be displayed when
the applets are compiled. This occurs because the programs use Java 1.0
techniques so they can run in the widest possible audience of Web browsers.
To find out about the Java 2 techniques for handling mouse events, read the handling
mouse clicks page for a tutorial on these new techniques, which were
used to create the NewLines and NewSpots examples listed below.
- Page 348: The SetBack applet's Web page has some incorrect HTML. In the <APPLET>
tag, replace code="SetBack.java" with code="SetBack.class".
The example works as printed when the page is loaded into the JDK 1.2
appletviewer, but that's nonstandard behavior for a Web browser loading Java
applets. The code attribute always should refer to a .class
file.
SOURCE FILES
LINKS
|