Creating an Applet

In JDeveloper, you can easily create a skeleton Java applet and then edit it with the Code Editor.

To create a Java applet:

  1. In the Navigator, select the project in which you want to create the new 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 to open the New Applet dialog.

    This will open the New Applet dialog that will create the applet for you based on information you specify, including the name, package and class it extends. Press F1 or click H elp to obtain context-sensitive help in the dialog.

When you are finished, you will have a skeleton .java file containing the applet class, based on the details you entered. You can edit this file in the Code Editor. Using JDeveloper you will also be able to embed your applet within an HTML page, which you can create with the Applet HTML File wizard. You can also run the applet standalone in order to test it from JDeveloper.


Creating an Applet HTML File
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