|Chapter 9: Applets and Basic Graphics|
|Source Code in This Chapter|
imagessubdirectory). See JavaJump.html.
PARAMelement containing a
VALUEpair). See HelloWWW2.html.
OBJECTtag to specify an applet, as the
APPLETtag was deprecated in the HTML 4.0 specification. Requires Java 1.3 Plug-In.
imagessubdirectory). See JavaMan1.html.
imagessubdirectory). See JavaMan2.html. Note, however, if you download the code and the HTML file to a different server and try to run it unchanged, the applet will fail since it tries to load an image from an absolute URL that referring to corewebprogramming.com. Applets cannot legally access URLs that are not on the machine from which the applet was loaded.
-preloadas a command-line argument to preload the image. In this case, the
prepareImagemethod is called to immediately start a thread to load the image. Thus, the image is ready to display when the user later selects the Display Image button. Uses image Java-Plate-1.jpg
-1. Uses image surfing.gif (which should be placed in
imagessubdirectory). See ImageBox.html. Duke is a registered trademark of Sun Microsystems, Inc. All restrictions apply. See Sun trademarks and logo policies.
MediaTrackeris used to block (wait till the image is completely loaded) before preceding to determine the image size. Uses image surfing.gif (which should be placed in
imagessubdirectory). See BetterImageBox.html. Duke is a registered trademark of Sun Microsystems, Inc. All restrictions apply. See Sun trademarks and logo policies.
|URLs in This Chapter|
APPLETtag to an
TrainingAbout the Instructor
Intermediate Servlet & JSP Training Courses
Advanced Servlet & JSP Training Courses
SCWCD Training Courses
Jakarta Struts Training Courses
JavaServer Faces (JSF) & Apache MyFaces Training Courses
Ajax Training Courses
Java 5 & 6 Programming Training Courses
Customized On-Site Training Courses
Public Training Course Schedule
TutorialsApache Tomcat Tutorial
Intermediate Servlets & JSP Tutorial
Advanced Servlets & JSP Tutorial
SCWCD (Sun Certified Web Component Developer) Exam
Jakarta Struts Tutorial
JavaServer Faces (JSF) & Apache MyFaces Tutorial
Java 5 & 6 Programming Tutorials
Tutorials in Chinese
Tutorials in Japanese
ConsultingOur consulting services
JobsWe are hiring!