| Chapter 9: Applets and Basic Graphics |
|---|
| Source Code in This Chapter |
|---|
![]() |
|---|
| Order now |
images subdirectory).
See JavaJump.html.
PARAM element containing a
NAME-VALUE pair).
See HelloWWW2.html.
OBJECT tag to specify an applet,
as the APPLET tag was deprecated in the HTML 4.0 specification.
Requires Java 1.3 Plug-In.
images subdirectory).
See JavaMan1.html.
images subdirectory).
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.
images subdirectory.
WindowListener to support terminating the application.
-preload as a command-line
argument to preload the image. In this case, the prepareImage
method 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 images subdirectory).
See ImageBox.html.
Duke is a registered trademark of Sun Microsystems, Inc.
All restrictions apply.
See Sun trademarks
and logo policies.
MediaTracker is 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 images subdirectory).
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 |
|---|
APPLET tag to
an OBJECT and/or an EMBED tag
| General |
|---|