Owl Teach Yourself Java in 24 Hours, Fifth Edition
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / THANKS
ROGERS CADENHEAD

Hour 4: The Frog Applet

the Frog applet

If your Web browser can handle Java applets, there should be an animated frog taking a snack break above this paragraph. The following HTML tags are used to put the applet on this page:

<APPLET CODE="Frog.class" WIDTH=500 HEIGHT=60>
<PARAM NAME="bgcolor" VALUE="#CCFFFF">
</APPLET>

As you can see, this applet takes only one parameter, BGCOLOR. This is used to define the background color of the applet, which in this example matches the background of the Web page. The value #CCFFFF is a series of three hexadecimal numbers that determine how much red, green, and blue are in the background color.

The Frog applet was created by Karl Hörnell, one of the most innovative game programmers using Java on the World Wide Web. Hörnell, a Swedish computing student, makes the source code of many Java programs available for use (including the code and image used by his Frog applet). For more details, visit his Java on the Brain Web site.

Before hopping over there, though, you should continue to the next applet.

HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / THANKS

Search terms used to find this page: Java programming, teach yourself, 24 hours, how to, learn, Sams, Macmillan, Java2, JDK1.5, Java 1.5, JDK 1.5, SDK1.5, Java 2 SDK 1.5, SDK 1.5, Java 2 version 1.5, J2SE 1.5, J2SE 5, Java 2 Standard Edition 1.5, Java 2 Standard Edition 5, Java 2 SDK, Java SDK, Rogers Cadenhead, tutorial, hands-on, source code, code, javac, java, appletviewer, help, learning, applet, application, Java Plug-in, plugin, Swing, GUI, interface, Java2D, IO, Java Web Start, games, novice, beginner, neophyte, rookie

Valid HTML 4.01!

Valid CSS!