Top
Interstage Studio User's Guide
FUJITSU Software

7.3.3 Creating an Applet

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:

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.

7.3.3.1 Applet Information

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.