1、- 1 - 外文原文 Java Applet BasicsJava Applet Basics -by Laura Lemay Much of Javas current popularity has come about because of Java-capable World Wide Web browsers and their support for applets: small programs that run inside a Web page and can be used to create dynamic, interactive Web designs. Applets
2、, as I noted at the beginning of this book, are written in the Java language, and can be viewed in any browser that supports Java, including Suns Hot Java and Netscapes Navigator 2.0. Learning how to create applets is most likely the reason you bought this book, so lets waste no more time. Last week
3、, you focused on learning about the Java language itself, and most of the little programs you created were Java applications. This week, now that you have the basics down, you move on to creating and using applets, which includes a discussion of many of the classes in the standard Java class library
4、 .Today , youll start with the basics: (1) A small review of differences between Java applets and applications (2) Getting started with applets: the basics of how an applet works and how to create your own simple applets tag, including the various (3) Including an applet on a Web page by using the f
5、eatures of that tag (4) Passing parameters to applets How Applets and Applications Are Different Although you explored the differences between Java applications and Java applets in the early part of this book, lets review them. In short, Java applications are stand-alone Java programs that can be ru
6、n by using just the Java interpreter, for example, from a command line. Most everything youve used up to this point in the book has been a Java application, albeit a simple one. Java applets, however, are run from inside a World Wide Web browser. A reference to an applet is embedded in a Web page using a special HTML tag. When a reader, using a Java-aware browser, loads a Web page with an applet in it, the browser downloads that applet from a Web server and executes it on the local syst