Use the Applet Wizard to create an applet source and then use the Graphical Editor or the Java editor to edit it. The methods for doing this are explained below.
Creating a new applet
This is a Java Form with java.applet.Applet/javax.swing.JApplet and its extended class as a superclass.
Select [Java] > [GUI] > [Applet] from the [New] wizard and then use the Wizard to create a new applet.
The settings in the Wizard include the following:
Package name
Specify the package name of the source to be generated.
Applet name
Specify the class name of the applet source.
Config
Specify the bounds, font, foreground color, and background color of the applet.
Extended class details
Specify the base class.
Generate HTML and Generate HTML for JBK plug-in
Specify the generation of HTML for launching an applet or for launching an applet for JBK Plugin, as well as the HTML page title and the width and height of the applet to be described in the HTML.
Parameter information
This is parameter information that is to be reflected in the automatically generated HTML file. Pairing the names and values of applet parameters allows a number of pairs to be specified.
Note
If another project class or library class has been specified in the superclass of the applet, the automatically generated HTML template must be corrected. This is because a superclass will be required in order to execute the applet.
For example, if the MyApplet class of the applet is in "project1.jar" and if the superclass is in baseclass.jar, add "baseclass.jar" to the archive attribute of the applet tag.
<applet code=MyApplet.class width=400 height=400 archive="project1.jar, baseclass.jar">
</applet>
When the applet is being built, an error message may be displayed stating that an abstract method has not been listed. If this happens, start an editor such as the Java editor and then describe the abstract method that was displayed in the error message.
Item | Description |
---|---|
Source Folder | Select the source folder to store the applet source. |
Package | Enter the package name if the package name of the class to be generated is to be specified. |