Creating an Applet HTML File

In JDeveloper, you can easily create a Java applet HTML file that acts as a container for your applet.

To create a Java applet HTML file:

  1. In the Navigator, select the project that contains your applet.
  2. Choose File then choose New to open the New Gallery.
  3. In the Categories tree, expand Client Tier and select Swing/AWT.
  4. In the Items list, double-click Applet HTML Page to open the Applet HTML File wizard.

    The Applet HTML File wizard will create the file for you based on information you specify, including the file location, code attributes, positioning attributes, and applet parameters. You can also create an optional deployment profile. Press F1 or click the Help button to obtain context-sensitive help in the wizard.

When you are finished, you will have an .html file that acts as the container for your applet. When this file is opened in a browser, it causes the applet to be downloaded and executed on the computer where it was viewed. You can edit this file in the Code Editor. When you create a deployment profile, the profile contains the information necessary to deploy the applet, which is described by the new HTML file, as a web application. Using JDeveloper you will be to run and debug your applet, enabling you to test it before deployment.


Creating an Applet
Editing Source Code in JDeveloper
Converting an HTML Page that Contains an Applet
Debugging an Applet
Running an Applet
Deploying an Applet as a WAR File