Hour 15 Applets and Web Pages
In this hour you will learn how to embed Java applets inside Web pages. As explained first in Hour 12, Java applets are small programs that travel with Web page code and execute on the end-user’s computer. Generally, you’ll want to keep your applets small because they load with the user’s Web page. Unlike standalone Java applications, which can be much larger, the more efficient your applets are, the faster they load with a Web page and the more likely your users are to return to your site.
As you’ll see, the Java language does not change whether you’re programming for an application or an applet. The way you set up a Java applet is different from the way you set up a standalone application but once you’ve set up ...
Get Sams Teach Yourself Beginning Programming in 24 Hours, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.