Copying an Applet Into an HTML File

You can copy an applet from a portfolio and paste it into an HTML file.

To copy an applet:

  1. Choose Project => Copy and select the name of an applet or remote applet project.

  2. Click the Source Editor control on the Java WorkShop tool bar.

  3. In the Source Editor, choose Edit => Paste.

    The Source Editor displays an <applet> tag for the project based on the information you specified when you created or edited the project.

  4. Save the file as an HTML file.

Note

Remote applets, and sometimes local applets, have their own HTML file. In this case, the WorkShop pastes the entire HTML file into the Source Editor. You may want to edit this file because it includes more than just the <applet> tag.


See also:

Copying an Image Into an HTML File
Copying and Pasting Projects Between Portfolios
Importing a Project