September 2005
Beginner
576 pages
13h 6m
English
Java applets are never run from the command line, so you can't specify arguments the way you can with applications. Applets use a different way to receive information at the time the program is run. This configuration information is called parameters, and you can send parameters through the HTML page that runs the applet. You have to use a special HTML tag for parameters called param.
To see how the Blanks application would be rewritten as an applet, open your word processor, enter the text of Listing 4.5, then save the file as BlanksApplet.java.
1: import java.awt.*; 2: 3: public class BlanksApplet extends javax.swing.JApplet { 4: String parameter1; 5: String parameter2; ... |
Read now
Unlock full access